B4J Question Separate the string at the decimal point

strupp01

Active Member
Licensed User
Longtime 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
Longtime User
You have to escape the character, it is a special one: Regex.split ("/.", "123.456 cm")
 
Upvote 0
Top