Sunday, April 7, 2013

Re: [android-developers] Re: String.replaceAll with regular expression

Am 07.04.13 09:34, schrieb Lew:
> Ralph Bergmann wrote:
> Caused by: java.util.regex.PatternSyntaxException: Invalid value for
> match mode flags near index 4:
> (?w=[0-9]+)
> ^

I found it, the problem is the ? at the beginning. It is also a regex
metacharacter.
"([?]w=[0-9]+)" works :-)


Ralph

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment