I have the following string...
"some<text><999><STEAM_0:0:000000><text>again some other stuff"
Howcome this...
...matches this...
<text><999><STEAM_0:0:000000><text>
...when surely it should only match this...
<999><STEAM_0:0:000000><text>
...?
What am I missing?
I need to match only <999><STEAM_0:0:000000><text> which works when there are no pointy brackets to the left of it but on some occasions such as above there may be and I have no control over how many or where they are placed.
Cheers!
"some<text><999><STEAM_0:0:000000><text>again some other stuff"
Howcome this...
Code:
system.text.regularexpressions.regex("<.+><STEAM_.+:.+:.+><.+>")
<text><999><STEAM_0:0:000000><text>
...when surely it should only match this...
<999><STEAM_0:0:000000><text>
...?
What am I missing?
I need to match only <999><STEAM_0:0:000000><text> which works when there are no pointy brackets to the left of it but on some occasions such as above there may be and I have no control over how many or where they are placed.
Cheers!