[Esapi-user] RegEx for validator needs double backslash escaped?

weiping guo weiping_guo at yahoo.com
Mon May 23 14:03:56 EDT 2011


Hi,

I noticed the RegEx used for Validator in SwingSet is double backslash escaped, like the following:

Validator.Email=^[A-Za-z0-9._%-][email protected][A-Za-z0-9.-]+\\.[a-zA-Z]{2,4}$

Is this required? Or single backslash would be OK?

Thanks.

Jim 


More information about the Esapi-user mailing list