Re: c regex example



gert wrote:
On Jul 21, 8:39 pm, gert <gert.cuyk...@xxxxxxxxx> wrote:
On Jul 21, 9:21 am, Ico <use...@xxxxxxx> wrote:

Save the return value of regcomp() and use regerror() to convert the
error code into a readable string when not zero
Ok that i did and figured out the regex was invalid aldo it isn't some
how it doesn't understand (?

Doh the memcpy doesnt work because i forgot to alocate memory first,
still need a answer for infinitive loop and the csv regex that is
invalid :)

You're trying to do too many new things at once. Put in a very simple
regex first. Then when you get all the other code working and you have
proven that you can call the regex API properly, put in a more
complicated regex.

Also, if you want help figuring out your regex, you should explain
what the regex is supposed to do and why you chose the regex you did.
I don't think most people want to guess what you want the regex to
accomplish.

- Logan
.



Relevant Pages

  • Re: c regex example
    ... error code into a readable string when not zero ... Ok that i did and figured out the regex was invalid aldo it isn't some ... char errbuf; ...
    (comp.programming)
  • preg_match() returns false but no documentation why
    ... Can anybody spot why this doesn't seem to be working right? ... error code. ... there something wrong with the regex, or am I pumping an invalid format into ... addresses (from SitePoint, ...
    (php.general)
  • Re: Regex help
    ... regex in my code snip wasn't working as it did on the text snippet I originally supplied. ... I can understand the 2nd method: A grouped, literal comma, one or more times followed by a zero or more spaces. ... follow the pattern but is not included as part of the pattern. ...
    (perl.beginners)
  • RE: Regex help
    ... regex in my code snip wasn't working as it did on the text snippet I ... I can understand the 2nd method: A grouped, literal comma, one ... or more times followed by a zero or more spaces. ... Is it referring to the preceding expression ...
    (perl.beginners)
  • Re: c regex example
    ... Ok that i did and figured out the regex was invalid aldo it isn't some ... char errbuf; ... still need a answer for infinitive loop and the csv regex that is ...
    (comp.programming)