Re: [codenameone-discussions] Strip html from string

2019-03-13 Thread shop . service . assistant
Perfect.
Thank You for all your help!

Regards

On Tuesday, March 12, 2019 at 12:17:03 PM UTC-4, Steve Hannah wrote:
>
> Use the RE class for regular expressions.
>
> https://www.codenameone.com/javadoc/com/codename1/util/regex/RE.html#subst-java.lang.String-java.lang.String-
>
> On Tue, Mar 12, 2019 at 7:30 AM > 
> wrote:
>
>> If you are experiencing an issue please mention the full platform your 
>> issue applies to:
>> IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
>> Desktop OS Windows 10 Pro
>> Simulator Latest
>> Device PC, Android, IOS
>>
>> I am using StringUtil.replaceAll(html, "\\<.*?>", ""); to strip out html
>> However it is not working.
>>
>> Looking at the source for StringUtil.replaceAll substitutes literals, 
>> does not seem to support regular expression.
>>
>> Thoughts?
>>
>> Regards
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to codenameone-discussions+unsubscr...@googlegroups.com 
>> .
>> Visit this group at 
>> https://groups.google.com/group/codenameone-discussions.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/c62d76bc-74d2-4833-a225-e38bc9a99b23%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/8ace06dc-c634-4e7b-a9cc-2faee4b9b7d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Strip html from string

2019-03-12 Thread Steve Hannah
Use the RE class for regular expressions.
https://www.codenameone.com/javadoc/com/codename1/util/regex/RE.html#subst-java.lang.String-java.lang.String-

On Tue, Mar 12, 2019 at 7:30 AM  wrote:

> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
> Desktop OS Windows 10 Pro
> Simulator Latest
> Device PC, Android, IOS
>
> I am using StringUtil.replaceAll(html, "\\<.*?>", ""); to strip out html
> However it is not working.
>
> Looking at the source for StringUtil.replaceAll substitutes literals,
> does not seem to support regular expression.
>
> Thoughts?
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/codenameone-discussions.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/c62d76bc-74d2-4833-a225-e38bc9a99b23%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXJ%2BYpn_NA8D%3DPgp56RZyTSo8DwSEN1mMDQ77YBB-6g4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Strip html from string

2019-03-12 Thread shop . service . assistant
If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
Desktop OS Windows 10 Pro
Simulator Latest
Device PC, Android, IOS

I am using StringUtil.replaceAll(html, "\\<.*?>", ""); to strip out html
However it is not working.

Looking at the source for StringUtil.replaceAll substitutes literals, does 
not seem to support regular expression.

Thoughts?

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c62d76bc-74d2-4833-a225-e38bc9a99b23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.