null null -4 years ago 109
C# Question

How do I match a string starting at a specific position in the string?

What is the regex for matching a date starting at the 4th position? I want it to return just the date and not the whole match. This is what I have.

DCSG20170406090204-FQI-046.TOT 04-FIC-046 00060Y000815050.562500G
DCS120170406090204-FQI-045.TOT 04-FIC-045 00060Y000878279.312500G
DCS120170406090204-FQI-046.TOT 04-FIC-046 00060Y000815050.562500G

Answer Source

You probably want a non-capturing group:


(mouse over the text at: and it will show just one group)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download