Re: [CVS ci] pcre pattern match example

2003-10-05 Thread Dan Sugalski
At 7:19 PM +0200 10/5/03, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: Fair enough, but I don't want to ship the PCRE sources, nor require them for parrot to build, so there's something of a problem there, unfortunately. So I'll make a lib ouf of it. Where do you prefer it to

Re: [CVS ci] pcre pattern match example

2003-10-05 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > Fair enough, but I don't want to ship the PCRE sources, nor require > them for parrot to build, so there's something of a problem there, > unfortunately. So I'll make a lib ouf of it. Where do you prefer it to go: * runtime/parrot/lib/ * library/ leo

Re: [CVS ci] pcre pattern match example

2003-10-05 Thread Dan Sugalski
At 5:33 PM +0200 10/2/03, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: On Thu, 2 Oct 2003, Leopold Toetsch wrote: $ parrot examples/assembly/pcre.imc "abcdef12" 'bc(.)([a-z]+)' abcdef12 =~ /bc(.)([a-z]+)/ Given that, for perl 5 code, we're going to have perl 5's real regex

Re: [CVS ci] pcre pattern match example

2003-10-02 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > On Thu, 2 Oct 2003, Leopold Toetsch wrote: >> $ parrot examples/assembly/pcre.imc "abcdef12" 'bc(.)([a-z]+)' >> abcdef12 =~ /bc(.)([a-z]+)/ > Given that, for perl 5 code, we're going to have perl 5's real regex > engine, and for perl 6 in perl 5 compatibi

Re: [CVS ci] pcre pattern match example

2003-10-02 Thread Dan Sugalski
On Thu, 2 Oct 2003, Leopold Toetsch wrote: > $ parrot examples/assembly/pcre.imc "abcdef12" 'bc(.)([a-z]+)' > abcdef12 =~ /bc(.)([a-z]+)/ > ok: 3 from 1 to 6 matched: 'bcdef' > all matched: 'bcdef' > (1) matched: 'd' > (2) matched: 'ef' > > pcre.imc dynamically loads libpcre and performs a pattern

[CVS ci] pcre pattern match example

2003-10-02 Thread Leopold Toetsch
$ parrot examples/assembly/pcre.imc "abcdef12" 'bc(.)([a-z]+)' abcdef12 =~ /bc(.)([a-z]+)/ ok: 3 from 1 to 6 matched: 'bcdef' all matched: 'bcdef' (1) matched: 'd' (2) matched: 'ef' pcre.imc dynamically loads libpcre and performs a pattern match on the commandline args given. As its for sure usef