regular expressions
- Started
- Last post
- 7 Responses
- fusionpixel
What would you use regular expressions for? like I know some people use them with JS to test if an email address is valid and stuff l ike that, but what would other people use them for in an everyday situation?
- cosmo0
- validating url's.
- lets say you wanted to replace some text into url's, you would use it.
- search and replace thingsthere are tons of uses for regular experssion.
- fusionpixel0
nice, i have a small expression that allows me to pull info from a webpage:
(".*)
as you can see this will pull the content from the first td, is there any way to say i want to pull the info from the second td?
i tried
(".*)/2
and
(".*)*2but they dont work, any suggestions? in the mean time im still reading some info for regex
thanks!
- uberdesigner0
hello is a good one. I dig hey
- 4cY0
:|
- fusionpixel0
ah the site broke my code, anyways thanks for the link mon, i already went through that site but i'll read it again.
- QuincyArcher0
i use regular expressions to validate things. Everything from phone numbers, to currency, email address...etc.