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


Groups > comp.lang.c > #4222

Re: how to use regex library

From James Kuyper <jameskuyper@verizon.net>
Newsgroups comp.lang.c
Subject Re: how to use regex library
Date 2011-05-18 08:00 -0400
Organization A noiseless patient Spider
Message-ID <ir0cca$ph8$1@dont-email.me> (permalink)
References <pan.2011.05.18.03.11.30.52000@Owner-PC.com> <slrnit6ffp.11pj.usenet-nospam@guild.seebs.net> <pan.2011.05.18.10.41.08.923000@Owner-PC.com>

Show all headers | View raw


On 05/18/2011 06:41 AM, Owner wrote:
> On Wed, 18 May 2011 03:33:28 +0000, Seebs wrote:
> 
>> On 2011-05-18, Owner <Owner@Owner-PC.com> wrote:
>>> I wanted regex lib, so I googled and found henry spencer's
>>> regex lib.  I did tried look into try.c.  but I need more
>>> examples of how to use the regex lib.  Can someone help me
>>> with this please?
>>
>> This is too vague.  What do you want to do?  What on earth are you
>> using that doesn't already have a working regex library, that you
>> need to go look one up?
>>
>> The usual way people go about using a library is that they start by
>> knowing what they want to do, then they look for things that can do it.
>> You seem to be starting by grabbing random software, then trying to think
>> of things you can do with it.  I suggest that perhaps you would be less
>> confused if you did things in the other way.
>>
>> -s
> 
> I apologize for vagueness.  I'm asking to anyone knows how to use
> henry spencer's regex library.  I expected to send RE pattern
> and target string to the library, then it send me back with either
> match was found of not, if found send me back position in the
> target string and length of matched string.  but when I saw
> the only file with main(); try.c, quickly I got confused.
> I got lost and don't even know how to use the henry spencer's 
> lib functions(even though I have copy of it).  that's why I called 
> for help.  Just getting a small clue wouldbe make this question 
> wealthy.  thank you

You've completely ignored the question that was asked, which was "what
do you want to do?", and simply provided a more detailed answer to the
question "how do you want to do it?".

Example of "what do you want to do?": "I want to add the values stored
in 'a' and 'b', and put the result in 'c'.
Example of a defective answer to "how do you want to do it?": "I want to
write c *= a+b;"
Do you see how hard it is to explain what's wrong with the second
answer, without first knowing the answer to the first question?

Please explain what you want to do. If your answer contains, anywhere
within it, the words "regex", "library", "henry", "spencer", "RE", or
"try.c", then you're still answering the wrong question - please rewrite it.
-- 
James Kuyper

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


Thread

how to use regex library Owner <Owner@Owner-PC.com> - 2011-05-17 23:11 -0400
  Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-18 03:33 +0000
    Re: how to use regex library Owner <Owner@Owner-PC.com> - 2011-05-18 06:41 -0400
      Re: how to use regex library James Kuyper <jameskuyper@verizon.net> - 2011-05-18 08:00 -0400
        Re: how to use regex library Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-18 20:00 +0100
          Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-18 19:44 +0000
            Re: how to use regex library Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-19 00:43 +0100
              Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-19 00:52 +0000
                Re: how to use regex library Owner <Owner@Owner-PC.com> - 2011-05-18 22:04 -0400
                Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-19 02:21 +0000
                Re: how to use regex library Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-19 04:04 +0100
                Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-19 03:14 +0000
                Re: how to use regex library Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-19 12:03 +0100
                Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-19 14:37 +0000
                Re: how to use regex library Geoff <geoff@invalid.invalid> - 2011-05-19 11:29 -0700
                Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-19 19:08 +0000
                Re: how to use regex library Geoff <geoff@invalid.invalid> - 2011-05-19 12:11 -0700
                Re: how to use regex library Kenneth Brody <kenbrody@spamcop.net> - 2011-05-20 12:55 -0400
                Re: how to use regex library Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-19 04:01 +0100
            Re: how to use regex library cri@tiac.net (Richard Harter) - 2011-05-19 16:02 +0000
              Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-19 16:34 +0000
                Re: how to use regex library Tim Rentsch <txr@alumni.caltech.edu> - 2011-05-19 13:59 -0700
                Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-19 22:06 +0000
                Re: how to use regex library Tim Rentsch <txr@alumni.caltech.edu> - 2011-05-24 02:03 -0700
                Re: how to use regex library Kenneth Brody <kenbrody@spamcop.net> - 2011-05-20 13:14 -0400
                Re: how to use regex library Tim Rentsch <txr@alumni.caltech.edu> - 2011-05-24 02:16 -0700
            Re: how to use regex library Kenneth Brody <kenbrody@spamcop.net> - 2011-05-19 14:37 -0400
          Re: how to use regex library James Kuyper <jameskuyper@verizon.net> - 2011-05-18 19:44 -0400
            Re: how to use regex library Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-19 03:49 +0100
              Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-19 03:03 +0000
                Re: how to use regex library Ike Naar <ike@iceland.freeshell.org> - 2011-05-19 06:48 +0000
                Re: how to use regex library James Kuyper <jameskuyper@verizon.net> - 2011-05-19 05:58 -0400
                Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-19 14:37 +0000
            Re: how to use regex library Kenneth Brody <kenbrody@spamcop.net> - 2011-05-19 14:48 -0400
              Re: how to use regex library Shao Miller <sha0.miller@gmail.com> - 2011-05-19 15:05 -0400
      Re: how to use regex library Mark Bluemel <mark_bluemel@pobox.com> - 2011-05-18 13:36 +0100
        Re: how to use regex library Owner <Owner@Owner-PC.com> - 2011-05-18 13:13 -0400
        Re: how to use regex library Owner <Owner@Owner-PC.com> - 2011-05-18 22:13 -0400
          Re: how to use regex library Mark Bluemel <mark_bluemel@pobox.com> - 2011-05-19 08:55 +0100
            Re: how to use regex library Owner <Owner@Owner-PC.com> - 2011-05-19 07:59 -0400
              Re: how to use regex library Keith Thompson <kst-u@mib.org> - 2011-05-19 08:50 -0700
              Re: how to use regex library Owner <Owner@Owner-PC.com> - 2011-05-19 15:12 -0400
                Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-19 19:40 +0000
                Re: how to use regex library cri@tiac.net (Richard Harter) - 2011-05-19 20:58 +0000
                Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-19 22:06 +0000
                Re: how to use regex library cri@tiac.net (Richard Harter) - 2011-05-20 01:01 +0000
                Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-20 01:57 +0000
                Re: how to use regex library Kenneth Brody <kenbrody@spamcop.net> - 2011-05-20 13:27 -0400
                Re: how to use regex library Kenneth Brody <kenbrody@spamcop.net> - 2011-05-20 13:08 -0400
                Re: how to use regex library Dr Nick <3-nospam@temporary-address.org.uk> - 2011-05-20 18:54 +0100
                Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-20 19:14 +0000
                Re: how to use regex library Dr Nick <3-nospam@temporary-address.org.uk> - 2011-05-21 00:04 +0100
                Re: how to use regex library Kenneth Brody <kenbrody@spamcop.net> - 2011-05-23 12:42 -0400
                Re: how to use regex library Dr Nick <3-nospam@temporary-address.org.uk> - 2011-05-23 20:16 +0100
                Re: how to use regex library cri@tiac.net (Richard Harter) - 2011-05-23 21:16 +0000
                Re: how to use regex library Kenneth Brody <kenbrody@spamcop.net> - 2011-05-24 12:08 -0400
                Re: how to use regex library cri@tiac.net (Richard Harter) - 2011-05-25 05:27 +0000
                Re: how to use regex library Michael Press <rubrum@pacbell.net> - 2011-05-22 21:41 -0700
                Re: how to use regex library cri@tiac.net (Richard Harter) - 2011-05-23 21:33 +0000
      Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-18 16:03 +0000
    Re: how to use regex library Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-05-18 14:05 +0000
  Re: how to use regex library Owner <Owner@Owner-PC.com> - 2011-05-20 22:06 -0400
    Re: how to use regex library Seebs <usenet-nospam@seebs.net> - 2011-05-21 03:49 +0000
      Re: how to use regex library Owner <Owner@Owner-PC.com> - 2011-05-21 20:25 -0400
    Re: how to use regex library Shao Miller <sha0.miller@gmail.com> - 2011-05-21 13:17 -0500

csiph-web