SmileyBot 13 Posted October 23, 2018 Report Share Posted October 23, 2018 Hey guys I want to regex a number and remove the comma from the results Scraped number = 5,200 results = 5200 also when i regex \d with the set function, i get the following results 5200 is there a way to bring this back to 1 line 5200 Thanks Quote Link to post Share on other sites
pash 504 Posted October 23, 2018 Report Share Posted October 23, 2018 why not use replace command? alert($replace(5200,",","")) Quote Link to post Share on other sites
HelloInsomnia 1103 Posted October 23, 2018 Report Share Posted October 23, 2018 Use regex to get the 5,200 then: set(#number,$replace("5,200",",",""),"Global")If you need a regex to get the 5,200 try this: [\d\,]+ Quote Link to post Share on other sites
SmileyBot 13 Posted October 23, 2018 Author Report Share Posted October 23, 2018 Thx guys, too simple Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.