Re: Case modification in the substitution?

2002-12-04 Thread Daniel Dekany
Wednesday, December 4, 2002, 3:00:08 AM, Daniel F. Savarese wrote:

 In message [EMAIL PROTECTED], Daniel Dekany writes:
Not for me... I tried that now. It prints this for me:

substitute regex: '(.*)'
result: '\ufoo'

I download 2.0.6 and will try with that...

It's working now! With 2.0.6 it \u (and \l, etc.) works.

 You may have a version earlier than 2.0.3 lurking somewhere in your
 runtime environment.  This happens to people on occasion when they
 install software that uses an earlier version of jakarta-oro and
 leave it somewhere in their default classpath.  Anyway, it's all I
 can think of since I checked the commit logs for Perl5Substitution
 and ran diffs to verify that this has been working since Mark Murphy
 contributed the feature for the v2.0.3 release.

This is odd. I'm sure that I had only ORO 2.0.5 in the classpath. I
simply ran the example from the command line (no servlet enviroment or
something), and the classpath was simply path\to\the\oro.jar;. And now
that I have replaced that jar with ORO 2.0.6, and \u works. (Both jar
was the the binary that comes with the distributions.)

-- 
Best regards,
 Daniel Dekany


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Case modification in the substitution?

2002-12-04 Thread Daniel F. Savarese

In message [EMAIL PROTECTED], Daniel Dekany writes:
This is odd. I'm sure that I had only ORO 2.0.5 in the classpath. I
simply ran the example from the command line (no servlet enviroment or
something), and the classpath was simply path\to\the\oro.jar;. And now
that I have replaced that jar with ORO 2.0.6, and \u works. (Both jar
was the the binary that comes with the distributions.)

I ran a diff on the version in 2.0.6 and the version in 2.0.5 and
couldn't find anything that would have made a difference.  I downloaded
jakarta-oro-2.0.5.tar.gz and ran substituteExample using the packaged
jar file and it worked.  In any case, you've got it working which is all
that really matters to me at the moment.

daniel



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Case modification in the substitution?

2002-12-03 Thread Daniel F. Savarese

In message [EMAIL PROTECTED], Daniel Dekany writes:
According to ORO API docs, Perl5Substitution supports case
modification like \u or \l. I can't get it work:

Works for me:

 java substituteExample '(.*)' '\u$1' 'foo'
substitute regex: (.*)
result: Foo



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Case modification in the substitution?

2002-12-03 Thread John Goalby
Maybe the \\u in the original posters message?

John.


In message [EMAIL PROTECTED], Daniel Dekany writes:
According to ORO API docs, Perl5Substitution supports case
modification like \u or \l. I can't get it work:

Works for me:

 java substituteExample '(.*)' '\u$1' 'foo'
substitute regex: (.*)
result: Foo



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: Case modification in the substitution?

2002-12-03 Thread Daniel Dekany
Wednesday, December 4, 2002, 12:11:46 AM, Daniel F. Savarese wrote:

 In message [EMAIL PROTECTED], Daniel Dekany writes:
According to ORO API docs, Perl5Substitution supports case
modification like \u or \l. I can't get it work:

 Works for me:

 java substituteExample '(.*)' '\u$1' 'foo'
 substitute regex: (.*)
 result: Foo

Not for me... I tried that now. It prints this for me:

substitute regex: '(.*)'
result: '\ufoo'

I download 2.0.6 and will try with that...

-- 
Best regards,
 Daniel Dekany


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Case modification in the substitution?

2002-12-03 Thread Daniel F. Savarese

In message [EMAIL PROTECTED], Daniel Dekany writes:
Not for me... I tried that now. It prints this for me:

substitute regex: '(.*)'
result: '\ufoo'

I download 2.0.6 and will try with that...

You may have a version earlier than 2.0.3 lurking somewhere in your
runtime environment.  This happens to people on occasion when they
install software that uses an earlier version of jakarta-oro and
leave it somewhere in their default classpath.  Anyway, it's all I
can think of since I checked the commit logs for Perl5Substitution
and ran diffs to verify that this has been working since Mark Murphy
contributed the feature for the v2.0.3 release.

daniel



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]