Help with regex in javascript.

Posted by Bipul on Stack Overflow See other posts from Stack Overflow or by Bipul
Published on 2010-05-13T15:28:55Z Indexed on 2010/05/13 15:34 UTC
Read the original article Hit count: 301

Filed under:
|
|

Whatever string is given I have to see if there is exactly one space after and before =, If it is more than one space in either side I have to reduce that to one and if there is none, I have to insert one.

How should I do that ? String can contain anything.

Thanks

© Stack Overflow or respective owner

Related posts about regex

Related posts about string