I am trying to create a Pattern that returns me results as shows below
given list :
Help # 7256
Help # 83930
ph # 7222
this is a test example
Help # 029299
New # 92929
output :
Help # 7256
Help # 83930
Help # 029299
Anything that starts with Help following by # sign then followed by 3 , 4 , 5 digit value
I tried something like this
Regex pattern = new Regex(@"(Help #) (^|\D)(\d{3, 4,5})($|\D)");
Can someone please help me with creating this patten ? (in C#)
For C#, try this:
Outputs: