struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasper Floor" <jasperfl...@gmail.com>
Subject Re: Struts Url Validator
Date Fri, 10 Aug 2007 08:57:05 GMT
 /**
     * This expression derived/taken from the BNF for URI (RFC2396).
     */
    private static final String URL_PATTERN =
            "/^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/";

the above regexp is what the validator seems to use to validate urls.
For more information download the source from the apache commons
project. btw, I am not so good at reading regexp to tell what the
answer to your question is ot if this even answers your question. good
luck ;)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message