Created
February 5, 2016 13:55
-
-
Save abbas-oveissi/3c7c337511113b4fa080 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String line="The Eclipse IDE allows to perform <img src=\"smiley.gif\"></img> search and replace across a set of files <img src=\"abbas.gif\"></img> using regular expressions."; | |
Pattern pattern = Pattern.compile("<img src=\".*?\"></img>"); | |
Matcher matcher = pattern.matcher(line); | |
while (matcher.find()) { | |
Log.d("output : ",matcher.group()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment