Re: how do I use super-sed's /S option?

"'Ruud H.G. van Tol' [email protected] [sed-users]" <[email protected]> Sat, 14 Jan 2017 18:44:11 +0100
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
On 2017-01-14 17:58, [email protected] [sed-users] wrote:

>  I'm trying to use super-sed's perl regex /S  flag, but can't get it to work at all. This would be a very handy tool, if only I could understand how it's used! For example, I expect the following command will match and replace the pattern which spans across a newline to be replaced with Xs:
>  echo "(123) 456-7890\n(456) 567-9050" | sed -R -e "s/78.*?5/x/S" So, I am expecting this output:
>  (123) 456-78XX XXXXXXX67-9050 Instead I get (no match):
>  (123) 456-7890 (212) 567-9050

See also:

http://stackoverflow.com/questions/41647885/how-do-i-use-super-seds-perl-regex-dot-match

-- Ruud