jakarta-oro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: Perl5 and Alternate strange behavior
Date Fri, 15 Nov 2002 01:00:11 GMT

In message <PBEAIEGCIFKKEFMIOPDCCECCCLAA.jerome.jacobsen@gentootech.com>, "Jero
me Jacobsen" writes:
>Is there a way ORO to do this?  Or is there a way to specify this in the
>pattern itself?

The normal way to do this in Perl is to use ^ and $ to denote the start
and end of the match (i.e., you "specify this in the pattern itself"):
  $foo =~ /^(?:|STUFF|JUNK)$/
so I believe what you want is:
  Pattern pattern = compiler.compile("^(?:|STUFF|JUNK)$");


To unsubscribe, e-mail:   <mailto:oro-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:oro-user-help@jakarta.apache.org>

View raw message