Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Regex: Ignoring / skipping digits within an input-string

$
0
0

Hello@all,

I´m using REGEX to query an input string for different formats. All regular expressions are stored in a table - through looping throough the dataset I do a Regex.Match against each table entry.

Anyway I got a new request which looks as follows:

Input string: 0400002078000100

I´m interested only in the fist 10 Digits (therefor I use: 04000[0-9]{5}), ignore the next two digits ([0-9]{2})  and read again the next two digits.

Result of the match should be 040000307801 .

Thank you for any help,

Best regards,

Andre


Viewing all articles
Browse latest Browse all 8156

Trending Articles



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