[UPHPU] regex help for a rewrite

William Attwood wattwood at gmail.com
Fri Aug 22 13:55:44 MDT 2008


Do you want "/-/" or "/" anything "-" anything "/"?



On Fri, Aug 22, 2008 at 1:51 PM, Wade Preston Shearer <lists at wadeshearer.com
> 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 "/-/")
>
> _______________________________________________
>
> UPHPU mailing list
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>


More information about the UPHPU mailing list