regex help

I'm looking for syntax to do the following

original string
01 A Text String

desired replacement
01 - A Text String

I just need to insert a dash between the numeric and the alpha as shown.
There is the one occurrence of this pattern only in the string.

LVL 25
Who is Participating?
QlemoConnect With a Mentor DeveloperCommented:
"01 A Text String" -replace '(\d+)\s(.+)', '$1 - $2'

Open in new window

will search for arbitrary number of digits, followed by space, followed by arbitrary characters.
dgrafxAuthor Commented:
perfect - thanks ...
All Courses

From novice to tech pro — start learning today.