Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Split after regex pattern + space

$
0
0

I have a regex pattern, ".+\s.{2}\s.{3}\s.{3}\s.{2}\s.+\d{4}\s".    I always want to split the text on the last space \s, but keep the string which matches the pattern together.  How to do it?

 

Thank you in advance,

Mark


Viewing all articles
Browse latest Browse all 6937

Trending Articles