Skip to content

Commit eae69a2

Browse files
committed
merging @coei86 something and somethingBut from original VerbalExpressions repo
1 parent 545b303 commit eae69a2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

VerbalExpressions.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ public VerbalExpressions anythingBut(String value) {
7171
return this;
7272
}
7373

74+
public VerbalExpressions something() {
75+
this.add( "(.+)" );
76+
return this;
77+
}
78+
79+
public VerbalExpressions somethingBut(String value) {
80+
value = sanitize(value);
81+
this.add( "([^" + value + "]+)" );
82+
return this;
83+
}
84+
7485
public VerbalExpressions replace(String source, String value) {
7586
this.add( "" );
7687
this.source.replaceAll(pattern,value);

0 commit comments

Comments
 (0)