I am having a problem with the following bit of code. I am trying to match a string. When I have a match everything works perfectly. When it does not find a match it thro
Try checking for a match instead:
if (m.matches()){
instead of:
if (m.group(0) != ""){