I want to create the linkify with a simple html string like "Search stackoverflow with Google`". Have tried to use regular expression for detecting text parts with the following code, but the word "stackoverflow" did not show as a link on the textview
String content = "Search <b>stackoverflow<b> with Google";
TextView tv = (TextView)this.findViewById(R.id.tv);
tv.setText(Html.fromHtml(content));
Pattern pattern = Pattern.compile("<b\b[^>]*>(.*?)</b>");
Linkify.addLinks(tvContent, pattern, "http://www.google.com/search?q=",
null, myTransformFilter);
Any help on this would be appreciated. Thanks alot....