Hi Paul,
To me the best solution is:
^[\w.,()\-\'\s]{3,} (make sure EcmaScript compliancy is not set)
Remember that \w, which is at the root of my solution, behaves
differently while in EcmaScript compliant vs noncompliant mode:
EcmaScript compliant \w maps to [a-zA-Z_0-9]
EcmaScript noncompliant \w maps to [\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}]
So there should not be any need to include unicode character sequences
or their code (very ugly!).
HTH,
Efran Cobisi
http://www.cobisi.com
Paul Cowan wrote:
Hi,
I have the following regular expression that I use to allow valid characters.
^[A-Za-z0-9.,()\-\'\s]{3,}
The problem is I now need to open it out to include non latin characters like
acute and grave etc.
I have no idea how to do this in a regular expression.Can anyone help me?
Cheers
Paul
[EMAIL PROTECTED]
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com