0

I need a quick help on below

Problem Statement: I have a String "b161c43" and would need to split this into "b161" and "c43" in PowerShell.

I tried following commands but its not giving me the complete text

   'b161c43' -split '\D'  
    => Output as : 161 43   
    => But I need: b161 c43


Test Data: 
b69c123 
a1c1 
s4202z22
Sarang
  • 451
  • 1
  • 6
  • 12
  • 2
    `'b161c43' -split '\B(?=\D)'` – TessellatingHeckler Jul 05 '17 at 22:44
  • 3
    Hello, I believe this is a well-formed question however I closed it as duplicate because it is a basic regex question that could be solved with some research. I recommend you read the linked question/answer, then [use a RegEx tester to test your pattern and the resulting splits](http://regexstorm.net/tester). – briantist Jul 05 '17 at 22:45
  • Thanks this helps. – Sarang Jul 05 '17 at 22:46

0 Answers0