Regex - What would be regex for matching foreign characters?

If all you want to match is letters (including "international" letters) you can use p{L}.

If all you want to match is letters (including "international" letters) you can use \p{L}. You can find some information on regex and Unicode here.

Should it be done like /^a-zA-Z +$/\p{L} coz it is not working this way. – Rachel Jun 9 '10 at 21:31 @Rachel: You will probably need more than only \p{L} since this will match only letters (not spaces or other separators or numbers for instance). Exactly how it should looks is impossible to say without knowing the full requirements that you need to fulfill.

– Fredrik Mörk Jun 10 '10 at 5:14.

Depends onn regex library/programming language you use.

Php is the language here. – Rachel Jun 9 '10 at 21:34.

E\xE8\xE9\xEA\xEB will match any one of eéèêë.

– Gumbo Jun 9 '10 at 21:25 Extended ASCII. Good catch. Should be encoded for ASCII/ANSI (according to regular-expressions.

Info/reference.html. ) (Though it looks like \p{L} is still a better option.) – Dan Rasmussen Jun 9 '10 at 22:39 Extended ASCII is not a character set that I'm aware of. This matches up with at least Windows-1252 (ew) and ISO-8859-1.

– Thanatos Jun 9 '10 at 23:42 asciitable.Com I guess that's not the official name for it. It's what I run into most, tho. – Dan Rasmussen Jun 10 '10 at 4:25 There is no character set/encoding named Extended ASCII; it’s just a term for character sets/encodings that have US-ASCII as its base (see en.wikipedia.Org/wiki/Extended_ASCII).

I think the one you are referring to is the code page 437 (see en.wikipedia. Org/wiki/Code_page_437). – Gumbo Jun 10 '10 at 8:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions