B4J Question Separate the string at the decimal point

strupp01

Active Member
Licensed User
I want to separate a string at the decimal point into two strings with the command 'Regex.split'. This does not seem to work.
Example: '123.456 cm' split into '123' and '456 cm'
Dim str () As String = Regex.split (".", "123.456 cm")

Someone knows why?
 

derez

Expert
Licensed User
You have to escape the character, it is a special one: Regex.split ("/.", "123.456 cm")
 
Top