Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Default Regex information

Quote Reply
Default Regex information
In some of my columns, I have lost the original regex info, becasue of some weird problem...

What is the default regex info for the following fields
(and I think it would be cool to have the default regex info listed in the admin panel, or with a button to restore default regex)

Contact Name
Contact Email
Description

In addition, where can I find information about Regex info for dummies? (I'm a regex dummy)

Quote Reply
Re: Default Regex information In reply to
Hi Evoir,

I believe the default regex for email is ^(?:(?:.+\@.+\..+)|\s*)$

and none for name & description.

(I'm still using 2.0.3 however, may be different now)

Try here for an extremely basic Perl regex overview:
http://www.comp.leeds.ac.uk/Perl/matching.html

For something a little more in-depth:
http://www.perldoc.com/....6/pod/perlfaq6.html

And I'm sure there is more by searching http://www.perl.com

Best,

Matt G