I'm attempting to match multiple lines through Regex, but it doesn't seem to be working how it should. Is there another method that I'm overlooking?
What I'm trying to match is simple, and only appears once. It would be similiar to
What I originally tried was, Regex.Match(src,1234(.*)4321)
I didn't have any luck, but all I want to do is remove everything but the matched text. The example is a little simpler then what I'm actually working with but the pattern would be similiar.
What I'm trying to match is simple, and only appears once. It would be similiar to
Code:
1234
1
1
1
4321
9
9
9
I didn't have any luck, but all I want to do is remove everything but the matched text. The example is a little simpler then what I'm actually working with but the pattern would be similiar.