Quack
asked on
My regular expression values have increased. I need to allow for all of these: !#$%&'*+-/=?^_`{|}~;
This is my current regex setup:
I need one to allow for all of these: !#$%&'*+-/=?^_`{|}~;
would this work:
^(([\w\-_']+(?:\.[\w\-_]+)*@(?:[\w\-_]+\.)+[a-zA-Z]{2,7})[;]?)+$
I need one to allow for all of these: !#$%&'*+-/=?^_`{|}~;
^(([\w\-_']+(?:\.[\w\-_]+)*@(?:[\w\-_]+\.)+[a-zA-Z]{2,7})[;]?)+$
would this work:
^(([\w\!#$%&'*+-/=?^_`{|}~;]+(?:\.[\w\-_]+)*@(?:[\w\-_]+\.)+[a-zA-Z]{2,7})[;]?)+$
ASKER
breaking it...log error: ""Error","ajp-bio-8012-exe c-3","07/3 1/17","10: 02:17",,"I nvalid CFML construct found on line 214 at column 74.ColdFusion was looking at the following text:<p>&</p><p>The CFML compiler was processing:<ul><li>An expression beginning with $, on line 214, column 72.This message is usually caused by a problem in the expressions structure.<li>The tag attribute pattern, on line 214, column 53.<li>A cfparam tag beginning on line 214, column 6.<li>A cfparam tag beginning on line 214, column 6.<li>A cfparam tag beginning on line 214, column 6.</ul> The specific sequence of files included or processed is: D:\inetpub\wwwroot\central inv\centra l_inv_cont r_verify.c fm, line: 214 "
"
Is it possible the ^ and $ may be conflicting w/ something?
"
Is it possible the ^ and $ may be conflicting w/ something?
then try
^(([-\w\!#$%&\`*+\/=?^_{|}~;']+(?:\.[-\w\!#$%&\`*+\/=?^_{|}~;']+)*@(?:[\w\-_]+\.)+[a-zA-Z]{2,7})[;]?)+$
EDITED
ASKER
still throwing this errors:
"Error","ajp-bio-8012-exec -3","07/31 /17","10:2 0:25",,"In valid CFML construct found on line 214 at column 74.ColdFusion was looking at the following text:<p>&</p><p>The CFML compiler was processing:<ul><li>An expression beginning with $, on line 214, column 72.This message is usually caused by a problem in the expressions structure.<li>The tag attribute pattern, on line 214, column 53.<li>A cfparam tag beginning on line 214, column 6.<li>A cfparam tag beginning on line 214, column 6.<li>A cfparam tag beginning on line 214, column 6.</ul> The specific sequence of files included or processed is: D:\inetpub\wwwroot\central inv\centra l_inv_cont r_verify.c fm, line: 214 "
"Error","ajp-bio-8012-exec
Sorry don't understand the error (CF not my speciality)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
the escape worked w/in the CFML code...thanks
pls try
Open in new window
orOpen in new window
REgards