Hi at all
I have a reg exp (used with php) like
$filter="/[a-zA-Z0-9âèéêëòóôöüù-\s]+$/";
I am unable to add some special utf-8 characters because if I paste these characters into my editor it does'nt recognize them.
Characters are: żṡẓṣṢẒ
Reg exp'ld be:
$filter="/[a-zA-Z0-9âèéêëòóôöüù-żṡẓṣṢẒ\s]+$/";
(but I cannot save it with my edit plus editor)
I tryed to insert characters as:
\u017C\u1E61\u1E93\u1E63\u1E62\u1E92
But I believe I have to turn on this capablity for PHP and syntax uses an 'x' instead of a 'u'
Therefore My final regexp is:
[a-zA-Z0-9âèéêëòóôöüù-\x017C\x1E61\x1E93\x1E63\x1E62\x1E92]
To try it I wrote this little script:
<?PHP
mb_internal_encoding("UTF-8");
Header('Content-Type: text/html; charset: utf-8');
$filter="/[a-zA-Z0-9âèéêëòóôöüù-\x017C\x1E61\x1E93\x1E63\x1E62\x1E92\s]+$/";
echo $filter;
?>
result is:
/[a-zA-Z0-9âèéêëòóôöüù-7C6193636292\s]+$/
That is far from what I need truely.
How can I do please?
Thankyou