I have a long string in C# and i need to find substrings that look like this:
number.number:number
For example this string:
text text
965.435:001 text text sample
7854.66:006 text text
I want to find and save 965.435:001 and 7854.66:006 to a string somehow.
\dmeans “digit”+means “one or more”\.means a literal dot (.alone would mean “any character”)\bmeans “word boundary” (start or end of an alphanumeric “word”).So, your regex would be
In C#: