Search found 4 matches

by DerMajo
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 ...
by DerMajo
Tue Sep 27, 2011 8:41 am
Forum: General
Topic: Need to replace a multiple line large string
Replies: 10
Views: 1749

Hi

I dont know the meaning of "non-greedy repetition operators". If you have the time and the will, can you explain why this (.*?) operation is not doing, what i thought? In practice this replacement is successfully finished. I am a bit confused.

Thank you and regards
Majo
by DerMajo
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 ...
by DerMajo
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 ...