You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Scott Eade <se...@backstagetech.com.au> on 2009/03/19 01:26:55 UTC

Re: Replace ORO with java.util.regex in Fulcrum-Intake?

Replying to a very old post.

The regexp /^\w+$/ will match "Jürgen" when ORO is used, but will not 
match when java.util.regex is used.  So \w in ORO matches more than \w 
in java.util.regex and this can impact existing code.

I just spent 5 minutes checking to see if Siegfried's name in reality 
includes any accents (AFAICT it does not) since it would have been 
ironic if both of the people that replied to the original post had names 
that would hit this.

Now what I need is is a substitute character class for j.u.r that 
matches the \w provided by ORO.

Not a sow stopper, but something to be aware of.

Scott

Thomas Vandahl wrote:
> Anybody having bad feelings about this?
>
> Bye, Thomas.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@turbine.apache.org
> For additional commands, e-mail: dev-help@turbine.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@turbine.apache.org
For additional commands, e-mail: dev-help@turbine.apache.org


Re: Replace ORO with java.util.regex in Fulcrum-Intake?

Posted by Thomas Vandahl <tv...@apache.org>.
Scott Eade wrote:
> Now what I need is is a substitute character class for j.u.r that
> matches the \w provided by ORO.

\p{L} should work.

Bye, Thomas.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@turbine.apache.org
For additional commands, e-mail: dev-help@turbine.apache.org