homepage Welcome to WebmasterWorld Guest from 50.16.112.199
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Matching groups of delimited strings that contain unwanted characters
chopin2256

5+ Year Member



 
Msg#: 4350135 posted 9:45 pm on Aug 10, 2011 (gmt 0)

I would like to match groups of strings delimited by '/' that contain at least one number, question mark, or equal sign between the delimiters. For example:

www.example.com/string1/field?=string/str14ing/string/s56st43/

I would like to match the following groups:

/string1/
/field?=string/
/str14ing/
/s56st43/

Thus, leaving "string" left. Is there a way to do this using regular expressions?

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved