Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #38081
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2020-01-18 02:42 -0800 |
| References | <34ACCD99.539E361@apdo.com>#1/1> <98f3c647-877c-4602-b411-d319aee4b159@googlegroups.com> <87pnfhbxht.fsf@bsb.me.uk> |
| Message-ID | <a9a9390a-ebff-443d-8dbe-a46809f08caa@googlegroups.com> (permalink) |
| Subject | Re: Isalpha, isalnum in Javascript? |
| From | dr.j.r.stockton@gmail.com |
On Friday, 17 January 2020 21:10:12 UTC, Ben Bacarisse wrote:
> If you have ECMAScript 9, you can use
Well, yes, but for Web authors the need must be for the readers to have ECMAscript 9.
> /\p{Letter}/u
>
> as the pattern to match all Unicode characters with property
> General_Category = Letter. Still not 100%, but it might be what's wanted.
My up-to-date Firefox 72.0.1 (64-bit) then appears not to have ECMAScript 9. Is there now a way in ECMAScript to determine the ECMAScript version number?
H'mm - if there is such a way, it would be necessary, I suppose, to use the above RegExp within try...catch, and compose a moderately graceful failure.
--
(c) John Stockton, near London, UK. Using Google Groups. |
Mail: J.R.""""""""@physics.org - or as Reply-To, if any. |
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Isalpha, isalnum in Javascript? ms.2052001@gmail.com - 2020-01-17 00:50 -0800
Re: Isalpha, isalnum in Javascript? JJ <jj4public@vfemail.net> - 2020-01-17 23:05 +0700
Re: Isalpha, isalnum in Javascript? dr.j.r.stockton@gmail.com - 2020-01-17 13:07 -0800
Re: Isalpha, isalnum in Javascript? JJ <jj4public@vfemail.net> - 2020-01-18 21:01 +0700
Re: Isalpha, isalnum in Javascript? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-01-18 19:13 +0100
Re: Isalpha, isalnum in Javascript? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-01-17 21:10 +0000
Re: Isalpha, isalnum in Javascript? dr.j.r.stockton@gmail.com - 2020-01-18 02:42 -0800
Re: Isalpha, isalnum in Javascript? JJ <jj4public@vfemail.net> - 2020-01-18 21:01 +0700
Re: Isalpha, isalnum in Javascript? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-01-18 12:13 -0800
Re: Isalpha, isalnum in Javascript? Julio Di Egidio <julio@diegidio.name> - 2020-01-19 10:07 -0800
Re: Isalpha, isalnum in Javascript? dr.j.r.stockton@gmail.com - 2020-01-19 15:39 -0800
Re: Isalpha, isalnum in Javascript? Julio Di Egidio <julio@diegidio.name> - 2020-01-19 15:45 -0800
csiph-web