Hi, I'm new to using regular expressions. Can anyone suggest a regular expression I can use to extract the numbers from the following: 7;#Gender;#3;#Location eg. 7, 3
If your input is 7;#Gender;3;#Location
You could use the function named "replace", using the regular expression (;[a-z])w+ and replace it with and empty string ""
I have created a sample here >>> RegExr: Learn, Build, & Test RegEx
Remember to experiment your regular expressions on regexr.com
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.