On 25Jun2021 18:41, Chuck Martin <unicorn+m...@sdf.org> wrote:
>I don't think there's another way.  That's the way I do it, anyway, but
>I don't bother with the [^@], using .* instead.  I also have the whole
>thing in double quotes, and the backslashes are doubled for some reason.
>I don't remember why I had to do that, but it is probably necessary, or
>it wouldn't work for me (the doubled backslashes, I mean).

That will be the quotes. You want a single backslash in your regexp. In 
quotes some sequence \x means something (eg \n meaning a newline 
character and of course \\ to mean a backslash) so you need a double 
backslash in the quotes to get a single backslash in the post-quote 
value.

Cheers,
Cameron Simpson <c...@cskk.id.au>

Reply via email to