Chris Santerre <[EMAIL PROTECTED]> wrote: > Why are some URI rules written normally like this: > uri name /regex/ > and others: > uri name m{regex} > uri name [EMAIL PROTECTED]@ > > What is up with the m's?
In Perl, a regular expression match is written with 'm', followed by a delimiter, then the pattern, then another delimiter. The delimiter can be pretty much any non-word, no- whitespace character, and brackets ([{<>}]) can be paired with their opposites. If slashes are used as the delimiter, the 'm' can be omitted, so slashes are normally used unless there are slashes in the pattern itself, in which case another delimiter is often used to avoid the need to backslash the slashes in the pattern. For more, see the Perl documentation: http://perldoc.com/perl5.8.0/pod/perlop.html#m-PATTERN-cgimosx -- Keith C. Ivey <[EMAIL PROTECTED]> Washington, DC ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk