You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by "Daniel F. Savarese" <df...@savarese.org> on 2002/12/04 00:11:46 UTC

Re: Case modification in the substitution?

In message <30...@freemail.hu>, 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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Case modification in the substitution?

Posted by Daniel Dekany <dd...@freemail.hu>.
Wednesday, December 4, 2002, 12:11:46 AM, Daniel F. Savarese wrote:

> In message <30...@freemail.hu>, 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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>