SmileyBot 13 Posted January 29, 2017 Report Share Posted January 29, 2017 Hey Guys I only want to regex return letters, numbers, spaces from this data result is, horizontal 1..... My desired result is: result is horizontal 1 When trying many different regex code [\w\s\d] I get the same vertical result Current regex results: result is horizontal 1 Thanks for any help! Quote Link to post Share on other sites
pash 504 Posted January 29, 2017 Report Share Posted January 29, 2017 try [\w\s\d]+ Quote Link to post Share on other sites
SmileyBot 13 Posted January 29, 2017 Author Report Share Posted January 29, 2017 thanks, but when i use the above i don't get anything Quote Link to post Share on other sites
pash 504 Posted January 29, 2017 Report Share Posted January 29, 2017 alert($find regular expression("result is, horizontal 1.....","[\\w\\s]+")) Quote Link to post Share on other sites
SmileyBot 13 Posted January 29, 2017 Author Report Share Posted January 29, 2017 Yes, but the result is on 2 lines example: result ishorizontal 1 Quote Link to post Share on other sites
pash 504 Posted January 29, 2017 Report Share Posted January 29, 2017 alert($find regular expression("result is, horizontal 1.....","[\\w\\s,]+")) Quote Link to post Share on other sites
SmileyBot 13 Posted January 29, 2017 Author Report Share Posted January 29, 2017 thanks mate, not sure whats going on as it keep braking into 2 lines?and when i dump it into a csv it looks like this result horizontal 1 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted January 29, 2017 Report Share Posted January 29, 2017 alert($text from list($list from text($find regular expression("result is, horizontal 1.....","\\w*|\\d*|\\s*"),$new line)," ")) try that Regards,Nick Quote Link to post Share on other sites
SmileyBot 13 Posted January 29, 2017 Author Report Share Posted January 29, 2017 it worked, cheers friend 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.