1
1
1rayman12022-04-14 09:51:40
PowerShell
1rayman1, 2022-04-14 09:51:40

Powershell how to insert space before capital letter?

Please help me, there is a variable that has the full name IvanovIvanIvanovich, without spaces, but each word begins with a capital letter, how to make a space appear before each capital letter, it is desirable but not necessary that there be no space before the first word.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew AT, 2022-04-14
@1rayman1

("ИвановИванИванович" -creplace  '([А-Я])',' $&').Trim()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question