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

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -