www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Regular expression support in D2

reply Justin Johansson <procode adam-dott-com.au> writes:
Just having a poke under the D2/Phobos hood with a view to playing with D2 in
anger (though I'm wary of jumping from D1 just right now).

There are 2 modules: regex.d and regexp.d

Which does one use for regular expression support in D2 and why?  Is one legacy
with respect to the other?

Thanks

-- Justin Johansson
Sep 24 2009
parent Don <nospam nospam.com> writes:
Justin Johansson wrote:
 Just having a poke under the D2/Phobos hood with a view to playing with D2 in
anger (though I'm wary of jumping from D1 just right now).
 
 There are 2 modules: regex.d and regexp.d
 
 Which does one use for regular expression support in D2 and why?  Is one
legacy with respect to the other?
 
 Thanks
 
 -- Justin Johansson
 
Use std.regex. regexp is scheduled for deprecation.
Sep 24 2009