I need to match sequence='999'
inside a <noteinfo>
tag in a xml document using Java RegEx (xml parser is not an option).
Snippet of the xml:
<xmltag sequence='11'>
<noteinfo noteid='1fe' unid='25436AF06906885A8525840B00805DBC' sequence='3'/>
</xmltag>
I am using this: (?<=<noteinfo.*)sequence='[0-9999]'(?=/>)
I am expecting a match on this: sequence='3'
Getting error: java.util.regex.PatternSyntaxException: Look-behind group does not have an obvious maximum length
I understand the issue is with the .* in the look-behind part. Any alternatives to avoid the error?