Question
replaceAll not working as expected
Hi,
I have a variable
FooBar: this is first line
this is second line
this is thrird line
@String.replaceAll(.FooBar,"\r\n"," ")
I expect output: this is first line this is second line this is thrird line
but still get
this is first line
this is second line
this is thrird line
Appreciate any clues why is this behaving this way. Thanks in advance.
Background: upgraded from 6.2 to 7.1.9
***Updated by moderator: Vidyaranjan | Included Categories
Couple of questions
1) How did you confirm the order of the line break and carriage return characters \r\n or \n\r?
2) Are you sure that both characters are present? Might be a good idea to write a quick test to confirm this, as the regex search will not match your search criteria if only one character is present.
Regards
Patrick