Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

VS 2010 Matching Text in a String

$
0
0
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
Code:

1234
1
1
1
4321
9
9
9

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.

Viewing all articles
Browse latest Browse all 27189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>