Re: [htdig3-dev] Regex


Torsten Neuer (tneuer@inwise.de)
Wed, 5 May 1999 15:25:30 +0200


According to Geoff Hutchison:
>On Wed, 5 May 1999, Torsten Neuer wrote:
>
>> Well.. AFAIK brackets are used in regexp to define sets, so you'll
>> run into trouble with a regexp like [^-%]* (which matches anything
>> but '-' and '%'). Parenthesis are AFAIK used to create groups, so
>> they are reserved for regexp as well. I'm not sure about {} though.
>
>No, no. I'm suggesting that the brackets be used to delimit a regex, then
>be stripped off. So your regex would be:
>
>[[^-%]*]
>
>The outer set of [] are just saying "hey, I'm a regex, don't escape me!"

Yep, of course.. stupid me (must be the lack of caffeine I experience today)..

Torsten

--
InWise - Wirtschaftlich-Wissenschaftlicher Internet Service GmbH
Waldhofstraße 14                            Tel: +49-4101-403605
D-25474 Ellerbek                            Fax: +49-4101-403606
E-Mail: info@inwise.de            Internet: http://www.inwise.de

------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev@htdig.org containing the single word "unsubscribe" in the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Wed May 05 1999 - 06:36:45 PDT