python to javascript regex -
can me fix regex use in javascript?
(?<!\\\\)#\\{{1,2}
regex tester said:
syntaxerror: invalid regular expression: /(?:((?<!\\)#\{{1,2})|(.))/: invalid group
thanks.
maybe /(?:((?!\\)#\{{1,2})|(.))/
. in python negative lookback
(?<!...)
in javascript (?!...)
remove <
Comments
Post a Comment