I'd like to use a regex to find an exact string, but not if it's part of a comment, as designated by //. So for example, in the string: hello apple apples // eat an apple It shou
Solution 1:
this pattern will catch what you want in the first sub-pattern
Post a Comment for "Python Regex To Avoid A Character Earlier In The String"