What type of regex does Google Colab use for find and replace feature

You should not escape the underscore _, it is a word character, and escaping word characters is not always allowed across regex libraries.

What you want to match is xtst not followed with either a digit or underscore, so you can use

xtst(?!_|\d)
xtst(?![\d_])
xtst(?![0-9_])

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top