Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15854

Re: regexp help

From "Scott Sauyet" <3103invalid@webnews.fastusenet.org>
Newsgroups comp.lang.javascript
Subject Re: regexp help
Message-ID <201209111651133103@webnews.fastusenet.org> (permalink)
References <fqydnZxNJ4Gw59TNnZ2dnUVZ_sidnZ2d@westnet.com.au> <aatr4mFvsbU1@mid.uni-berlin.de> <1492793.DGNhQbDWfW@PointedEars.de>
Date 2012-09-11 16:51 +0000

Show all headers | View raw


Thomas 'PointedEars' Lahn wrote:
> [ ... ]
> Which gives me the idea that a Unicode mode for jsx.regexp.RegExp() to
> replace \b, \w and \W � in addition to or using the already implemented
> Unicode character properties (\p{Lu} et al.) � would come in handy. �
> Comments anyone?

I think this would be very useful.  I haven't looked at the jsx.regexp implementation.  Would this be straightforward to add?

I guess I don't know the Unicode spec very well.  Are the characters that 
would reasonably be included inside an expanded `\w` mode within a few 
contiguous blocks?  Is the notion of what "would reasonably be included" 
even coherent?  Obviously you could make whatever call you choose about what 
to include, but is there an obvious call to make?

It's quite clear that one that included the extended Latin characters would 
be useful, and I imagine it would make sense for alphabets like Greek or 
Cyrillic, but the further afield we go from languages I know, the less I 
understand the implications.  Still, I would love to see it done, even if 
only for the simpler cases.

  -- Scott

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

regexp help Andrew Poulos <ap_prog@hotmail.com> - 2012-09-07 14:37 +1000
  Re: regexp help Jake Jarvis <pig_in_shoes@yahoo.com> - 2012-09-07 10:55 +0200
    Re: regexp help Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-07 15:36 +0200
      Re: regexp help Andrew Poulos <ap_prog@hotmail.com> - 2012-09-08 10:27 +1000
        Re: regexp help Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-08 09:34 +0200
      Re: regexp help "Scott Sauyet" <3103invalid@webnews.fastusenet.org> - 2012-09-11 16:51 +0000
        Re: regexp help Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-11 22:31 +0200
          Re: regexp help "Scott Sauyet" <3103invalid@webnews.fastusenet.org> - 2012-09-19 11:56 +0000
            Re: regexp help Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-19 18:51 +0200
              Re: regexp help Scott Sauyet <scott.sauyet@gmail.com> - 2012-09-19 12:52 -0700
                Re: regexp help Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-20 02:13 +0200
                Re: regexp help Scott Sauyet <scott.sauyet@gmail.com> - 2012-09-20 06:51 -0700
                Re: regexp help Dr J R Stockton <reply1237@merlyn.demon.co.uk.invalid> - 2012-09-20 20:23 +0100
      Re: regexp help "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-09-11 14:55 -0700

csiph-web