OT: GNU regex library and non-capturing groups

Discussion in 'C Programming' started by pinkisntwell, Nov 13, 2009.

  1. pinkisntwell

    pinkisntwell Guest

    Is there a way to use non-capturing groups (the ones denoted with
    (?: ) with the GNU regex library? Capturing groups work fine but it
    looks like non-capturing groups are not supported, which makes working
    with complex expressions a pain.
     
    pinkisntwell, Nov 13, 2009
    #1
    1. Advertising

  2. pinkisntwell

    Seebs Guest

    On 2009-11-13, pinkisntwell <> wrote:
    > Is there a way to use non-capturing groups (the ones denoted with
    > (?: ) with the GNU regex library? Capturing groups work fine but it
    > looks like non-capturing groups are not supported, which makes working
    > with complex expressions a pain.


    You're right, this is OT. Try one of the GNU groups?

    -s
    --
    Copyright 2009, all wrongs reversed. Peter Seebach /
    http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
    http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
     
    Seebs, Nov 13, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles Shannon Hendrix

    REGEX: capturing on optional groups which fail

    Charles Shannon Hendrix, Jun 14, 2004, in forum: Perl
    Replies:
    0
    Views:
    555
    Charles Shannon Hendrix
    Jun 14, 2004
  2. Peter

    1 day gnu, whole life gnu?

    Peter, Jan 10, 2005, in forum: Java
    Replies:
    3
    Views:
    350
    John C. Bollinger
    Jan 10, 2005
  3. Markus Elfring
    Replies:
    2
    Views:
    378
    Markus Elfring
    Feb 23, 2005
  4. Joerg Schuster

    more than 100 capturing groups in a regex

    Joerg Schuster, Oct 24, 2005, in forum: Python
    Replies:
    33
    Views:
    1,079
    Tim Peters
    Oct 27, 2005
  5. candide
    Replies:
    6
    Views:
    505
    Devin Jeanpierre
    Jan 3, 2012
Loading...

Share This Page