Re: negative match

2006-01-24 Thread Tom Phoenix
On 1/24/06, Adriano Allora <[EMAIL PROTECTED]> wrote: > and the pattern results in stdout as this: > ^(?:(?-xism:ara\w+))[^A-Z]*((?-xism:[A-Z]+))[^A-Z]*(?!arabo) > It's quite strange: the first and second element have got a pair of > brackets more and I don't understand what -xism does mean. It's

Re: negative match

2006-01-24 Thread Adriano Allora
Hi, I tried with qr{} (after readind the perlop manpage as tom suggested) and the pattern results in stdout as this: ^(?:(?-xism:ara\w+))[^A-Z]*((?-xism:[A-Z]+))[^A-Z]*(?!arabo) It's quite strange: the first and second element have got a pair of brackets more and I don't understand what -xism d

Re: negative match

2006-01-20 Thread Tom Phoenix
On 1/20/06, Adriano Allora <[EMAIL PROTECTED]> wrote: > my $form1 = qw(ara\w+); > my $pos1 = qw([A-Z]+); > my $lemma1 = qw(?!arabo); > my $pattern = "^(?:$form1)[^A-Z]*($pos1)[^A-Z]*($lemma1)\n"; You probably don't have the pattern you think you have. Have you tried printing $pattern to see what

Re: negative match

2006-01-20 Thread Shawn Corey
Adriano Allora wrote: hi to all, I cannot use a negative match, and I cannot understand why: someone may help me? I've got this four rows (for instance): arabaADJ arabo araboADJ arabo araboNOM arabo aranoVER:presarare and, with this regular expressi

Re: negative match

2006-01-20 Thread Gerard Robin
On Fri, Jan 20, 2006 at 04:22:28PM +0100, Adriano Allora wrote: From: Adriano Allora <[EMAIL PROTECTED]> I've got this four rows (for instance): arabaADJ arabo araboADJ arabo araboNOM arabo aranoVER:presarare and, with this regular expression, I would extr

negative match

2006-01-20 Thread Adriano Allora
hi to all, I cannot use a negative match, and I cannot understand why: someone may help me? I've got this four rows (for instance): arabaADJ arabo araboADJ arabo araboNOM arabo aranoVER:presarare and, with this regular expression, I would extract onl