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 2001/02/20 03:44:37 UTC

Re: Titlecase

>It simply replaces any occurrence of "the" with "\u$&".  Can anyone provide
>any information?

The \u construct (and others like \L \U \Q \E) is not actually part of Perl
regular expression syntax.  It is part of the way Perl processes double
quoted strings.  That's why it's not implemented.  In theory, the $&
construct should be implemented since parenthesized group interpolation
is implemented.  However, implementing $& would imply implementing $`
and $', which are closely tied to the innards of Perl and the thinking
at the time was that contortions beyond straight up $1, $2, etc. should
be handled in Java by implementing the Substitution interface rather
than writing a bunch of inefficient Perl parsing/interpreting code.

daniel