RegExp is a class to handle regular expressions.
One of these gets thrown on compilation errors
Search s[] for first match with pattern.
Search s[] for last match with pattern.
Search s[] for first match with pattern[] with attributes[].
Split s[] into an array of strings, using the regular expression pattern as the separator.
Search string for matches with regular expression pattern with attributes. Replace each match with string generated from format.
Search string for matches with regular expression pattern with attributes. Pass each match to delegate dg. Replace each match with the return value from dg.
Regular expression to extract an email address.
References:
How to Find or Validate an Email Address
RFC 2822 Internet Message Format
Regular expression to extract a url
<a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
Copyright Digital Mars 2000 - 2011.
Deprecated. It will be removed in February 2012. Please use std.regex instead.
Regular expressions are a powerful method of string pattern matching. The regular expression language used in this library is the same as that commonly used, however, some of the very advanced forms may behave slightly differently. The standard observed is the ECMA standard for regular expressions.
undead.regexp is designed to work only with valid UTF strings as input. To validate untrusted input, use std.utf.validate().
In the following guide, pattern[] refers to a regular expression. The attributes[] refers to a string controlling the interpretation of the regular expression. It consists of a sequence of one or more of the following characters:
<table border=1 cellspacing=0 cellpadding=5> <caption>Attribute Characters</caption>
<tr>
</tr> <tr>
</tr> <tr>
</tr> </table>
The format[] string has the formatting characters:
<table border=1 cellspacing=0 cellpadding=5> <caption>Formatting Characters</caption>
</table>
Any other $ are left as is.
References: Wikipedia