Regex modifier to treat the pattern as a fixed string -
i have 'regular expression' default search mode in notepad++, , looking way avoid changing search modes between 'normal' , 'regular expression' time, based on type of pattern i'm searching for.
is there modifier in regex treat pattern (part or whole) fixed string? example, want test_group="${test_group}"
matched literal string, without having escape anything.
i found modifier, (?q)
, tcl here, need more general, work in searches in notepad++/vim, , preferably, works in languages such perl/java.
you can use \q , \e
avoid escaping of characters inside match string
example: match .${hello}
literally
\q.${hello}\e
see regex demo
Comments
Post a Comment