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

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

java - ConcurrentModificationException upon committing transaction with Hibernate -