I’m new to regex in Java and am having trouble getting it to work properly. The following code is saying there were no matches found.
pattern = Pattern.compile("EN\\( [ -][0-5]\\)= \\d+.?\\d*E[+-]\\d{2}");
match = pattern.matcher("EN( 0)= 0.000000E+00");
String result = match.group();
As far as I can tell, this should be working. I’ve been using the Oracle java tutorial on regular expressions to guide me. Any and all help is appreciated.
Almost there, you just need: