Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

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 10624

Trending Articles