Attempting to extract a pattern within a string
- by Brian
I'm attempting to extract a given pattern within a text file, however, the results are not 100% what I want.
Here's my code:
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ParseText1 {
public static void main(String[] args) {
String content = "<p>Yada yada yada <code> foo ddd</code>yada…