in reply to Regex substitution problem
Also, it is not clear if the text you give in your post is multi-line, i.e., if it has embedded newlines, or if it is a single string (which seems most likely). In the former case, use a /s regex modifier (see perlre section Modifiers) which allows the . (dot) metacharacter to match newlines.
|
|---|