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

Split string with one or more white spaces

$
0
0

Hello,

I need split a string by one or more white spaces. For example: 

"John Nov11 Boston

Smith        Dec12 NewYork

Linda Oct10  London

Fran   Jan20          Paris"

I need get all the name, date, city. Each field is seperated by one or more white spaces. How can I get those fields with powershell script?  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>