On regex101.com I used the following expression which returned a ':' and a number (e.g. ':15').
(?<=Total)(\s*\:\s*)\d{1,3}(?=h)
These are string examples:
Anne KowalskyTotal:15hPersonal data
2021-01-19Total: 2hCertificate
Unfortunately, my RegEx doesn't return a match with C#. I also tried runnig the RegEx method in C# with Multiline option but this also didn't work.
What do I need to do in order to make it work?