Olivier Sessink
2014-03-22 15:40:25 UTC
Hi all,
I need some help with javascript syntax detection, especially correctly
working with regex syntax. The current regex
syntax does not work corectly, see:
https://bugzilla.gnome.org/show_bug.cgi?id=726849
What different kinds of regex syntax is allowed in javascript? As far as
I understand there are two possible types:
either the regex pattern starts with a " or a ' and we should treat is
as a regular string
or it starts with a / and then we should treat it as a string up to the
next slash and also the following modifier characters that may be g or i.
but the current javascript syntax has some special code if a ( is found.
why is that there? So perhaps there are more types of syntax?
Olivier
I need some help with javascript syntax detection, especially correctly
working with regex syntax. The current regex
syntax does not work corectly, see:
https://bugzilla.gnome.org/show_bug.cgi?id=726849
What different kinds of regex syntax is allowed in javascript? As far as
I understand there are two possible types:
either the regex pattern starts with a " or a ' and we should treat is
as a regular string
or it starts with a / and then we should treat it as a string up to the
next slash and also the following modifier characters that may be g or i.
but the current javascript syntax has some special code if a ( is found.
why is that there? So perhaps there are more types of syntax?
Olivier
--
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/