I'm just getting started with regexes so i might be doing some dumb mistakes here. I've got the following regex:
String regex = "length ?= ?\"[\\+-]?\\d+(\\.\\d+)?\".*height ?= ?\"[\\+-]\\d+(\\.\\d+)?\"";
This is matching this file/string properly:
<house length="120" prize="2000000" height="28"/>
but it's not matching
<house prize="2000000"
length="-1200"
owner="Smith"
height="55.8"/>
I find this really weird since it should be matching the second one too... Any help pointing me into the right direction will be much appreciated!