In message <[EMAIL PROTECTED]>, Michael Davey - Sun UK Support Engineer
writes:
>However, it might be nice to implement the m//g
>and pos functionality in ORO itself. Is this
>worth doing?
This is what PatternMatcherInput is for. You would reproduce
$grafitto = "fee fie foe foo";
while( $grafitto =~ m/e/g ) {
print pos $grafitto, "\n";
}
with
pmi.setInput("fee fie foe foo");
while(perl.match("m/e/", pmi)) {
System.out.println(pmi.getMatchEndOffset());
}
daniel
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>