Re: [PD] Chords parsing (with regexp)

2007-04-26 Thread IOhannes m zmoelnig
Alexandre Quessy wrote: Hi, I join an old draft patch using my draft [pcre] external. Stands for perl-compatible regular expressions which are must robust. It can be found in cvs :: externals/aalex/pcre.c just out of curiosity: how do these differ from the regular expressions handled by

Re: [PD] Chords parsing (with regexp)

2007-04-26 Thread Alexandre Quessy
Hi, regex uses POSIX regex. pcre uses Perl-like regex, which are more powerful, but non-standard, I think. PCRE might be slower though. a 2007/4/26, IOhannes m zmoelnig [EMAIL PROTECTED]: Alexandre Quessy wrote: Hi, I join an old draft patch using my draft [pcre] external. Stands for

Re: [PD] Chords parsing (with regexp)

2007-04-26 Thread Andy Farnell
I think it's best put as PCRE *can* be slower, take care with non-greedy matches and captures in Perl type regex. For chords I guess you want the first good match anyway, although that's an assumption. On Thu, 26 Apr 2007 08:01:32 -0400 Alexandre Quessy [EMAIL PROTECTED] wrote: Hi, regex uses

[PD] Chords parsing (with regexp)

2007-04-25 Thread Alexandre Quessy
Hi, It's been a long time I want to parse chord symbols. I started a patch a long time ago. Now, I think I should make an external out of that : easier to code... ;) Anyone has a hint on where to find such regular expression patterns ? I started this wiki page to put them on :