bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] How to escape a string into its regex form


From: Peng Yu
Subject: [bug-gawk] How to escape a string into its regex form
Date: Sat, 7 Sep 2019 22:39:28 -0500

Hi,

For a string, I want to generate a regex that match the string exactly.

For example, for a string "abc.xyz", the escaped string will be
"abc\.xyz". What is the correct way to perform such an escape for any
arbitrary string? Thanks.

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]