A quick RegEx snippet to ensure only thew matched sub-sting is returned on a match…
To extract part of a string from a line, example given below. RegEx:
1 |
Id\(\d+.{1,}\d+\), |
on:
1 |
Id(7, 4), DisplayName("Sound Hardware Details"), DescriptionAttribute("") |
catches:
1 |
Id(7, 4), |
Useful in batch Visual Studio search and replace..
Leave a Reply