[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ShopSuite-dev] [rational type] X/1 --> X
From: |
Tomasz Wegrzanowski |
Subject: |
Re: [ShopSuite-dev] [rational type] X/1 --> X |
Date: |
Sat, 8 Sep 2001 11:05:05 +0200 |
User-agent: |
Mutt/1.3.20i |
On Fri, Sep 07, 2001 at 06:52:56PM +0100, Davi Leal wrote:
> > > Do you know about regcomp() and regexec(). Do you have any idea of how
> > > check
> > > if the input match a regular expressions?.
> >
> > It's simple and I even have some helloworlds available
> > (I allways write helloworlds when I'm learning something new,
> > and I often save them for reference).
> > Tell me if you want me to send them to you.
>
> Please, send me it.
Here they are:
rx.c - posix rx
pcre.c - perl rx via posix rx api
> > But I don't know if it's any useful.
> > Parser is quite simple, and finding number start and end
> > is only half of parsing.
>
> Well, ... I think the use of a regular expression checker make it easier and
> less
> prone to mistake at some cases. See below:
>
> "2 " --> "2"
> " 23 " --> "23"
> " 4/7 " --> "4/7"
> "sk2 " --> "0/0"
> " 3/4 A" --> "0/0"
> " 3/4 A " --> "0/0"
>
> " 3/4 8" --> "0/0"
> " 3/48 " --> "1/16"
> Note that the initial and final blanks are
> stripped but not the middle ones.
That was "by design". Of course it's easy to change `design'.
pcre.c
Description: Text Data
rx.c
Description: Text Data
Makefile
Description: Text document
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Tomasz Wegrzanowski, 2001/09/01
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Davi Leal, 2001/09/07
- Re: [ShopSuite-dev] [rational type] X/1 --> X,
Tomasz Wegrzanowski <=
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Davi Leal, 2001/09/09
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Tomasz Wegrzanowski, 2001/09/09
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Davi Leal, 2001/09/09
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Tomasz Wegrzanowski, 2001/09/09
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Davi Leal, 2001/09/09
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Tomasz Wegrzanowski, 2001/09/09