Search found 4 matches
- Tue Sep 27, 2011 9:30 am
- Forum: General
- Topic: Need to replace a multiple line large string
- Replies: 10
- Views: 1749
Ähm, I'm knowing the usage of google to get the meaning of "non greedy regular expression". But my question was not "Can you explain me the meaning of..." but also "why does my replacement succeed, while you said it wont, because of non-greedy operations". Its not important to know because my issue ...
- Tue Sep 27, 2011 8:41 am
- Forum: General
- Topic: Need to replace a multiple line large string
- Replies: 10
- Views: 1749
- Tue Sep 27, 2011 7:05 am
- Forum: General
- Topic: Need to replace a multiple line large string
- Replies: 10
- Views: 1749
Thank you for your fast answer. I have found the solution myself. System\.out\.println\((.*?)\n(.*?)\); Because the newlines \n, \r are just two character in the class \s, the regex does match \f, \t und \v, which i dont want to find. So I read some stuff and try \r and \r\n and just \n to match ...
- Mon Sep 26, 2011 1:23 pm
- Forum: General
- Topic: Need to replace a multiple line large string
- Replies: 10
- Views: 1749
Need to replace a multiple line large string
Hi my source text ist for example this one (java-code): /** * Return the current page's binding container. * @return the current page's binding container */ public static BindingContainer getBindingContainer1(String name) { System.out.println("getBindingContainer1; " + "#{bindings." + name ...