REGEX help

zimu

Diamond Member
Jun 15, 2001
6,209
0
0
hey guys,

I'm a complete n00b with regex and was hoping someone could help me out.

I'm trying to build a regex that finds the string "login" anywhere in a URL. not just login, but also login_page, so it'd be more of a "find */login* sort of deal, i.e. finds login / login_page anywhere in the url under any folder i'm presently in...

any ideas?

thanks!
 

ScottMac

Moderator<br>Networking<br>Elite member
Mar 19, 2001
5,471
2
0
The actual REGEX verbiage will vary with language, what are you working with?
 

veri745

Golden Member
Oct 11, 2007
1,163
4
81
Do you mean you want to match URLs than contain login|login_page, or that you just want to find those strings within the URLs?

The second would be something like 'login(_page)?' depending on the language. If you want to match the entire URL, you'd need to know what the format of various URLs is.