cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dev at weitling <d...@weitling.net>
Subject Re: Regular Expression Help
Date Fri, 14 Dec 2007 09:55:53 GMT
Hi Derek,

Derek Hohls wrote:
> pattern="^(http|https|ftp)://"
>
> but this only allows me to enter only the prefix; not any string starting with
> those characters, which is what I thought the ^ character would do

no time to test, but what about

pattern="^(http|https|ftp)://.*"

meaning start with either http, https, ftp, followed by :// and any
number of characters (except CR/LF).

Bye,
Florian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message