Re: Is this efficient way to validate phrase against collection of regular expressions

From: Eric Bodden (newsserver_mails_at_bodden.de)
Date: 02/14/04


Date: Sat, 14 Feb 2004 14:02:47 +0100

Once upon a time <e32f82b0.0402140124.59a34140@posting.google.com>,
Ossie <google@okmoore.com> enriched the world with the following:

> Is there a better way to manage the
> validation of the phrase against a collection of patterns? My fear is
> this is pretty intense way of validating the pattern of the phrase.
No, I think that's pretty much optimal. You could use an arraylist instead
of a vector though. Vector is pretty slow. The matching itself however is
the most expensive part and that overhead cannot be overcome anyway.

Eric

-- 
-----------------------------------------------------------------
Eric Bodden
ICQ UIN: 12656220
Website: http://www.bodden.de
PGP key available


Relevant Pages

  • Re: OOD/OOP and databases
    ... I would recommend Joshua Kerievsky's book "Refactoring to Patterns" by ... If I went the Self-Evaluating Rule approach I would consider making ... > business rules is much more than validation. ...
    (microsoft.public.dotnet.general)
  • Re: Multiple perimeter service routers?
    ... Have you read the "Web services security patterns" published by the Patterns ... place to do message validation because the message must be decrypted to ... So I wonder if you could have two PSRs, one of which resides on the ... So a perimeter service router actually routs to an internal service ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Chord Progressions
    ... chord back to one? ... I just want some basic chord progression ideas of composing a short piece. ... obvious patterns in those but I should mention that many piece of CPP music ... the first phrase ends on V, and the second, more final phrase ends on I. ...
    (rec.music.theory)
  • Re: 3 questions on validation
    ... what do I get from validation". ... it as saying something else than it actually says. ... I added more emphasis to the phrase "starting step" than others would. ...
    (comp.infosystems.www.authoring.html)
  • Is this efficient way to validate phrase against collection of regular expressions
    ... validation of the phrase against a collection of patterns? ... public static void initPatternVector() ...
    (comp.lang.java.programmer)