• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

REGEX help

zimu

Diamond Member
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!
 
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.
 
Back
Top