Posted 20 years ago
by Marianne
Two questions:
#1 - Does the regex engine support the \r\n escapes in find/replace? I would like to be able to add cr/lf sequences in some scripts, and to remove them in others. I'm not able to get the find/replace to operate on \r\n at all. It doesn't seem to be able to find the characters.
#2 - For replacing, how do I reference a pattern match? For example, normally if I wanted to add a cr/lf to the end of every closing xml tag, the match would be:
(</\w+> ) and the replacement would be: $1\r\n
What syntax do I need to allow for this? Or is this something that the regex engine doesn't account for at present? Thanks.
#1 - Does the regex engine support the \r\n escapes in find/replace? I would like to be able to add cr/lf sequences in some scripts, and to remove them in others. I'm not able to get the find/replace to operate on \r\n at all. It doesn't seem to be able to find the characters.
#2 - For replacing, how do I reference a pattern match? For example, normally if I wanted to add a cr/lf to the end of every closing xml tag, the match would be:
(</\w+> ) and the replacement would be: $1\r\n
What syntax do I need to allow for this? Or is this something that the regex engine doesn't account for at present? Thanks.
------------------------------- Marianne