Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Extracting specific data from a string with regex using Powershell

$
0
0

Im returning some data like this in powershell:

1)Open;#1

2)Open;#1;#Close;#2;#pending;#6

3)Closed;#5

But i want an output like this:

1)1 Open

2)

1 Open

2 Close

6 pending

3)

5 Closed

Any help would be appreciated as my powershell isnt that good. Thanks



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>