Hi everyone,
I've already used the module
The expression
sample string to test expression upon
on regexr.com this combo work.
but when I try in my
code
Thanks
I've already used the module
re
a couple of times. but this time I have one expression that I can't pass to Python without getting an errorThe expression
Quote:(?<=^([^"']|["'][^"']*["'])*)#.*
sample string to test expression upon
Quote:#this is a test
#this is another test
x = None #another test
"This is a string with # Hash symbol" #a comment right after.
on regexr.com this combo work.
but when I try in my

x = re.compile( r'(?<=^([^"\']|["\'][^"\']*["\'])*)#.*' )I got
Error:re.error: look-behind requires fixed-width pattern
Any ideas ?Thanks
![[Image: NfRQr9R.jpg]](https://i.imgur.com/NfRQr9R.jpg)