Author |
Topic  |
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 29 August 2008 : 07:05:45
|
I haven't had problems. I got it from a book or online and I remember that it stated that a couple "obscure" cases weren't contemplated. I can't remember what cases were not contemplated, but they were not relevant enough to justify a much more complex regex.< |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 29 August 2008 : 07:15:20
|
Thanks, Huw; have replaced the RegEx with your one. Looks like this was the source of your one, Rui - some interesting, over-the-top alternatives in that article.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
HuwR
Forum Admin
    
United Kingdom
20593 Posts |
Posted - 29 August 2008 : 07:46:04
|
actually mine needs a slight adjustment
\w*([!#$%*/?|\^{}`~&'+-=_])*\w*@\w+([-.]\w+)*\.\w+([-.]\w+)*
it was not allowing this address a!#$%&'*+-/=?@example.com which believe it or not is perfectly valid.
there are still a few cases that won't validate, but they would be very unusual.< |
 |
|
HuwR
Forum Admin
    
United Kingdom
20593 Posts |
Posted - 29 August 2008 : 07:54:51
|
sorry, another tweak, this should be much better
[A-Z0-9!#$%*/?|\^{}`~&'+-=_]*@\w+([-.]\w+)*\.\w+([-.]\w+)*< |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 29 August 2008 : 09:16:34
|
Thanks, again, Huw; will add that to the script when I get back on the other machine.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
Topic  |
|