We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a677f4 commit 2a8774eCopy full SHA for 2a8774e
sources/net.sf.j2s.java.core/src/test/Test_Regex.java
@@ -11,12 +11,12 @@ public class Test_Regex extends Test_ {
11
public static void main(String[] args) {
12
13
String s;
14
+ Pattern p;
15
16
System.out.println("testRE pattern def");
- Pattern p = Pattern.compile("def");
17
- s = p.matcher("abc\\ndef\\n ghi").replaceAll("X");
+ s = Pattern.compile("''").matcher("ab'cd''ef'''gh''''").replaceAll("X");
18
System.out.println(s);
19
- assert (s.equals("abc\\nX\\n ghi"));
+ assert (s.equals("ab'cdXefX'ghXX"));
20
21
System.out.println("testRE DOTALL");
22
p = Pattern.compile(".*", Pattern.DOTALL);
0 commit comments