everisk Posted June 2, 2009 Share Posted June 2, 2009 Hi, I have below code var c = '<p>Test [Name]</p> <p> [Time]</p> <p>[Link]</p> <p>List</p>'; c = c.replace(/>(\s+|\t)</, "><"); alert(c); It looks like replace only replace the first occurance of the RegEx match. Isn't it suppose to replace all? Can anyone please tell me how do I get it to replace all occurance of RegEx match? Thanks a lot! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.