javascript REGex remove single quote in match

Posted by mushtaq on Stack Overflow See other posts from Stack Overflow or by mushtaq
Published on 2010-04-06T14:20:50Z Indexed on 2010/04/06 14:23 UTC
Read the original article Hit count: 460

Filed under:
|
|
|
var RegTxt =  "$f1$='test' AND f2='test2'";
alert(RegTxt.match(/\'[^\']*'/g))

returns the match correctely i:e 'test','test2' but how can i remove the single quote in the match.

© Stack Overflow or respective owner

Related posts about single

Related posts about quote