You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ivan Dudko <iv...@gmail.com> on 2010/03/02 16:09:33 UTC
validate
Hello!
I can't understand how can i validate ip address (e.g. 192.168.0.238)
using UrlValidator.
Thank you for help.
Ivan Dudko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: validate
Posted by Ivan Dudko <iv...@gmail.com>.
Thanks a lot!
2010/3/2 Riyad Kalla <rk...@gmail.com>:
> If you have that string literally copy-pasted in some Java code somewhere,
> you need to double escape the escape chars...
>
> \\b and so on.
>
> On Tue, Mar 2, 2010 at 8:32 AM, Ivan Dudko <iv...@gmail.com> wrote:
>
>> For this expression
>>
>> \b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b
>> eclipse says: invalid escape sequence
>>
>> 2010/3/2 Martijn Dashorst <ma...@gmail.com>:
>> > Why do you want to use a UrlValidator? An ip-address is not a URL?
>> > Maybe a pattern validator with
>> > http://www.regular-expressions.info/regexbuddy/ipaccurate.html would
>> > be better?
>> >
>> > Martijn
>> >
>> > On Tue, Mar 2, 2010 at 4:09 PM, Ivan Dudko <iv...@gmail.com> wrote:
>> >> Hello!
>> >>
>> >> I can't understand how can i validate ip address (e.g. 192.168.0.238)
>> >> using UrlValidator.
>> >>
>> >> Thank you for help.
>> >> Ivan Dudko
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Become a Wicket expert, learn from the best: http://wicketinaction.com
>> > Apache Wicket 1.4 increases type safety for web applications
>> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: validate
Posted by Riyad Kalla <rk...@gmail.com>.
If you have that string literally copy-pasted in some Java code somewhere,
you need to double escape the escape chars...
\\b and so on.
On Tue, Mar 2, 2010 at 8:32 AM, Ivan Dudko <iv...@gmail.com> wrote:
> For this expression
>
> \b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b
> eclipse says: invalid escape sequence
>
> 2010/3/2 Martijn Dashorst <ma...@gmail.com>:
> > Why do you want to use a UrlValidator? An ip-address is not a URL?
> > Maybe a pattern validator with
> > http://www.regular-expressions.info/regexbuddy/ipaccurate.html would
> > be better?
> >
> > Martijn
> >
> > On Tue, Mar 2, 2010 at 4:09 PM, Ivan Dudko <iv...@gmail.com> wrote:
> >> Hello!
> >>
> >> I can't understand how can i validate ip address (e.g. 192.168.0.238)
> >> using UrlValidator.
> >>
> >> Thank you for help.
> >> Ivan Dudko
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
> >
> > --
> > Become a Wicket expert, learn from the best: http://wicketinaction.com
> > Apache Wicket 1.4 increases type safety for web applications
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: validate
Posted by Ivan Dudko <iv...@gmail.com>.
For this expression
\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b
eclipse says: invalid escape sequence
2010/3/2 Martijn Dashorst <ma...@gmail.com>:
> Why do you want to use a UrlValidator? An ip-address is not a URL?
> Maybe a pattern validator with
> http://www.regular-expressions.info/regexbuddy/ipaccurate.html would
> be better?
>
> Martijn
>
> On Tue, Mar 2, 2010 at 4:09 PM, Ivan Dudko <iv...@gmail.com> wrote:
>> Hello!
>>
>> I can't understand how can i validate ip address (e.g. 192.168.0.238)
>> using UrlValidator.
>>
>> Thank you for help.
>> Ivan Dudko
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.4 increases type safety for web applications
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: validate
Posted by Martijn Dashorst <ma...@gmail.com>.
Why do you want to use a UrlValidator? An ip-address is not a URL?
Maybe a pattern validator with
http://www.regular-expressions.info/regexbuddy/ipaccurate.html would
be better?
Martijn
On Tue, Mar 2, 2010 at 4:09 PM, Ivan Dudko <iv...@gmail.com> wrote:
> Hello!
>
> I can't understand how can i validate ip address (e.g. 192.168.0.238)
> using UrlValidator.
>
> Thank you for help.
> Ivan Dudko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org