javallone/regexper

Server error

Closed this issue · 4 comments

This regexp throws server error:

^\s_([(){}[]?.,:;'"~#@`]|={1,3}|/(_(jslint|properties|property|members?|globals?)?|=|/)?|*[/=]?|+(?:=|++)?|-(?:=|-+)?|[^%]=?|&[&=]?||[|=]?|>{1,3}=?|<(?:[/=!]|!([|--)?|<=?)?|!(!|==?)?|[a-zA-Z_$][a-zA-Z0-9_$]|[0-9]+(?:[xX][0-9a-fA-F]+|.[0-9])?(?:[eE][+-]?[0-9]+)?)

The same

Server error

for

/([=(\[,&|?:!]\s*((\/\/[^\n\r]*[\n\r]+|\/\*[\s\S]*?\*\/)\s*)*)\/([^*+?\\\/\n\r]|\\[^\n\r])(\\\/|[^\/\n\r])*\//g

(a bit ugly way to match JavaScript's regular expressions)

forewer2000: The server error for your expression is now fixed, but it looks like there are several syntax errors, mostly "*" or "+" characters with nothing to repeat (the appear at the beginning of a parenthesized sub-expression).

Infocatcher: Your expression is now working. Be warned though that at this time you will see some incorrect results since you have included the "/.../g" syntax that JavaScript (and other languages) use to indicate a regular expression literal. This not currently supported (I will be adding support soon, probably today). See issue #5 for details on that.

Now it's working fine. There where another problem with email validation like this: ^(([^<>()[]\.,;:\s@\"]+(.[^<>()[]\.,;:\s@\"]+)*)|(
".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA
-Z-0-9]+.)+[a-zA-Z]{2,}))$
But it's ok now. Thanks