How to extract the number in the string “Task(12345)” with Regular Expression and Powershell?

Question:

How to extract the number in the string “Task(12345)” with Regular Expression and Powershell? I tried the following, but no chance.

Could someone please help me to find the correct regular expression?

Answer:

Do you want to get all occurances in the file? If so I would do the following

Source:

How to extract the number in the string “Task(12345)” with Regular Expression and Powershell? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply