Quantcast
Channel: CodeProject Latest postings for Regular Expressions
Viewing all articles
Browse latest Browse all 224

Regex only want the first match

$
0
0
Hi Would like to know if it's possible to get only the first match for this regex
^ \(SQL\)Max Duration..* ([0-9]+[0-9])( \([0-9][0-9][0-9][0-9])


I was able to isolate the value in second group but I am only interested to get the first match.

(SQL)Max Duration.. 1132 (2021-02-21 07:17:46:095)
(SQL)Std. Dev...... 3.36
(SQL)Max Duration.. 13 (2021-02-21 07:05:43:582)

Viewing all articles
Browse latest Browse all 224

Trending Articles



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