Just a quick question really, is it possible to use Regex capturing
groups in GWT?
I know java.util.regex isnt emulated, so I suspect not.
But I seeing as "replaceFirst" can use a regex, I wondered if there
was some way to later retrieve groups from it.
Specificaly,
HTMLContents = HTMLContents.replaceFirst("<a[^<>]+href([^<>]+)>",
"<div ID=\""+linkID+"\"></div>");
That line replaces links in a html page with a div and an assigned ID.
Using regex's normaly it should be possible to retrieve the string
between the () in the regex....in this case, refering too the contents
of the link element after the "<a href" and before the ">"
Any ideas how to do this in gwt?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---