You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by David Graham <dg...@hotmail.com> on 2003/04/30 22:11:16 UTC
[Validator] Is getDelimitedRegExp() really needed
There is a method ValidatorUtil.getDelimitedRegExp(String) that simply puts
a / on both sides of the given string (ie. /regex/). Do we really need this
method? It's a lot more code to use it than to just put the /s on yourself.
David
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [Validator] Is getDelimitedRegExp() really needed
Posted by Robert Leland <rl...@apache.org>.
David Graham wrote:
> There is a method ValidatorUtil.getDelimitedRegExp(String) that simply
> puts a / on both sides of the given string (ie. /regex/). Do we really
> need this method? It's a lot more code to use it than to just put the
> /s on yourself.
If the delimiter was to change to say '@' then having a method would
make sense. To make that usefull there should be a setDelimiter() method
in the Utils. Otherwise, sure deleter/deprecate it.
-Rob
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org