Hi omsrobert,

As a side note, it's worth mentioning that regular expressions used in GWT
will be evaluated in the JavaScript world and not the Java world. There are
slight syntactic differences between the two, so while looking up references
for regular expressions, you should consult resources for JavaScript regex
rather than Java.

Hope that helps,
-Sumit Chandel

On Mon, Nov 17, 2008 at 11:22 PM, alex.d <[EMAIL PROTECTED]> wrote:

>
> No GWT magic here - just POJ:
>
> if(!tbEmail.getText().matches("[a-z0-9!#$%&'*+/=?^_`{|}~-]+...bla bla
> bla...")) {
>   Window.alert("Invalid email");
> }
>
> On 17 Nov., 20:06, omsrobert <[EMAIL PROTECTED]> wrote:
> > How do you use regular expressions in GWT?  Can someone post a small
> > code sample?  I'm looking to validate an e-mail address against a RFC.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to