www.digitalmars.com         C & C++   DMDScript  

D - Regular Expressions

reply andrew.c.huff no.spam.ttu.edu writes:
Sorry, I didn't know if this question has been brought up earlier.  Does anyone
know if regular expressions might be supported in the language the way perl
does?  I didn't see any documentation about it, so I am assuming it will be
supported through a library.  Sorry if this sounds like a dumb question, I was
just curious.
Apr 19 2004
next sibling parent Ilya Minkov <minkov cs.tum.edu> writes:
andrew.c.huff no.spam.ttu.edu schrieb:
 Sorry, I didn't know if this question has been brought up earlier.  Does anyone
 know if regular expressions might be supported in the language the way perl
 does?  I didn't see any documentation about it, so I am assuming it will be
 supported through a library.  Sorry if this sounds like a dumb question, I was
 just curious.
See documentation, Phobos page. Regular expressions are part of the standard library from the first day on, but definately not Perl way. -eye
Apr 19 2004
prev sibling parent J C Calvarese <jcc7 cox.net> writes:
andrew.c.huff no.spam.ttu.edu wrote:
 Sorry, I didn't know if this question has been brought up earlier.  Does anyone
 know if regular expressions might be supported in the language the way perl
 does?  I didn't see any documentation about it, so I am assuming it will be
 supported through a library.  Sorry if this sounds like a dumb question, I was
 just curious.
It's in the standard library. The std.regexp module in D contains regular expressions. To see how it's done in D, you can look at my example at: http://www.dsource.org/tutorials/index.php?show_example=58 -- Justin http://jcc_7.tripod.com/d/
Apr 19 2004