Welcome to WebmasterWorld Guest from 54.198.87.238

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Matching groups of delimited strings that contain unwanted characters

     
9:45 pm on Aug 10, 2011 (gmt 0)

10+ Year Member



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?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month