Link to home
Create AccountLog in
Avatar of Jesper Christensen
Jesper Christensen

asked on

help with reg ex

Hi.

I have this XML string:

<x="351.24" y="401.4002">STK.</text>

I want to use a regular expression to find the value "STK." from Y=401

when i try:
Match m = Regex.Match(xml, "(?<=[^<]+ y=\"401.[^>])[^<]+");

I get the result:
402">STK.

Can anybody help+
ASKER CERTIFIED SOLUTION
Avatar of CaptRespect
CaptRespect

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Jesper Christensen
Jesper Christensen

ASKER

Excellent guys !!!