Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

PowerShell Regex match everything before character

$
0
0

I am working on a PowerShell script. I have a string where I need to match every character in that string before the first delimiter / There are multiple / in the string, I just need whatever text is before the first delimiter.

I would imagine this is possible in Regex. My GoogleFu is failing today on this one. I thought i had a script with a regex similar to what I need, but i could not find it.

Any help would be much appreciated.


Viewing all articles
Browse latest Browse all 15370

Trending Articles



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