Asp.net jquery reqex conversion? -
Is that an easy way to equalize in jquery or jscript?
New String = Reggae. Replace (single, "[^ a-z0- 9A-Z-]")
< P> like this:
newString = someString.replace (/ [^ a-z0- 9a-z -] / g, ""); Without the flag
g
( G lobal), this will only change the first match.
Comments
Post a Comment