regex escapes
Alex Folland
lexlexlex at gmail.com
Wed Feb 16 06:55:33 PST 2011
On 2011-02-16 5:48, spir wrote:
> Hello,
>
> Which characters are to be escaped:
> * inside [] classes
> * outside such classes
> ?
>
> Also, is there for D regexes a "free form" format (where whitespace can
> be used to present formats more legibly, but must be escaped as literals)?
>
> Denis
This is a comment in a regular expression: (?#comment)
The text, "comment", can be replaced with anything including whitespace.
The comment is terminated with ).
Oh, never mind. I just tested this. std.regex doesn't support regex
comments, apparently. :(
More information about the Digitalmars-d-learn
mailing list