In VSCode, attempting to search for print(
and print (
- but only if not followed by #
This is my first time attempting a regex search in VSCode...
Examples:
print ('Test One')
- MATCH
print( 'Test Two')
- MATCH
#print('Test Fee')
- SKIPPED
I understand from this question that VSCode lacks negative lookbehind.
Ordinarily, in the ^F
(search function) I would use something like (untested):
/w*(?<!#)print
but I am getting the error that the regex is invalid.
Can anyone suggest a workaround - or have I just fat-fingered the regex ?