You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
Hi, I've building a Android app in which I have to validate some textFields' contents. I've tried to use String.Matches, but it seems that Android don't support it. How could I validate this data?
Thanks in advance.
Shai Almog
unread,
Mar 1, 2013, 1:08:52 AM3/1/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com, paulac...@gmail.com
Hi, we don't support regex at the moment and some of the more elaborate string methods (e.g. matches, split etc.). This is planned for the future but isn't there yet. At the moment you will need to write the logic in Java rather than use a regex e.g. indexOf(x) to verify the existence of a char.
Alternatively you can incorporate one of the open source regex implementations from the web.
Steve Hannah
unread,
Mar 1, 2013, 1:30:03 AM3/1/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com, paulac...@gmail.com
If you're using a platform that has a native browser component (i.e.
Android or iOS) you can also use Javascript for regex via the
BrowserComponent.executeAndReturnString() method.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Steve Hannah, codenameone...@googlegroups.com
I'm trying to check my expression with charAt. So, I get the character at the index that I want. But in some points I have to convert it to int, to check if its a number. So, I tried to do this: