0

I have a string in C# that returns values in the format like shown below:

1-501-10 
1-501-2010 Final
1-2-5 ABC
1-3-2050-Final

I am looking for a Regex that extracts the following values

1-501-10
1-501-2010
1-2-5
1-3-2050

Thanks in advance. Appreciate your help.

Jan
  • 38,539
  • 8
  • 41
  • 69
FirstAider
  • 77
  • 5
  • Looks like you are looking to create a regex, but do not know where to get started. Please check [Reference - What does this regex mean](https://stackoverflow.com/questions/22937618) resource, it has plenty of hints. Also, refer to [Learning Regular Expressions](https://stackoverflow.com/questions/4736) post for some basic regex info. Once you get some expression ready and still have issues with the solution, please edit the question with the latest details and we'll be glad to help you fix the problem. – Wiktor Stribiżew Jun 09 '20 at 13:10

0 Answers0