Split strings at first number

Hello,
I would like to split the following string at the first number.

Muster Street 23a

It should only divided into to groups.

First
Muster Street

Second
23a

Another string

Musterstreet 23 a

First
Musterstreet

Second
23 a

Thx

Hi,

Can you try the following expression?

First

System.Text.RegularExpressions.Regex.Match(text,"^\D*").Value

Second

System.Text.RegularExpressions.Regex.Match(text,"(?<=^\D*)\d[\s\S]*").Value

Regards,

Thanks, that’s perfect

2 Likes