On Fri, Aug 22, 2008 at 3:51 PM, Wade Preston Shearer <[EMAIL PROTECTED]> wrote: > This is what I have so far: > > ^(([^/][^-][^/])+)((/-/)(([^/][^-][^/])*))?$ > > > Here is what I am trying to match in English: > > (anything except the string "/-/")(optional: the string "/-/" followed by > anything except the string "/-/") >
replying to all this time :) try this: ^(?!.*/-/.*/-/)((.+?)/-/(.*)|(.*))$ matches: 0 - the full line (if it meets the requirements) 1 - everything before the /-/, if /-/ exists. 2 - everything after the /-/, if /-/ exists and if there is anything after it. justin -- http://justinhileman.com _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
