-CA100-ISTITUTO PERTINI VIA CARPACCIO N° 18 A - N° 1 CHIAVE MECCANICA
in order to get only
B4X:
-CA100-
?
I'm trying with
B4X:
Dim strBeforeSplit As String
strBeforeSplit="-CA100-ISTITUTO PERTINI VIA CARPACCIO N° 18 A - N° 1 CHIAVE MECCANICA"
Dim strSplit() As String
strSplit=Regex.Split("-",strBeforeSplit)
Msgbox(strSplit(0)
CA100 is the SECOND value! Regex starts at the first - to split. means:
1st item is an empty string,
2nd Item CA100,
3rd Item ISTITUTO PERTINI VIA CARPACCIO N° 18 A
and 4th item N° 1 CHIAVE MECCANICA
B4X:
Dim strBeforeSplit As String
strBeforeSplit="-CA100-ISTITUTO PERTINI VIA CARPACCIO N° 18 A - N° 1 CHIAVE MECCANICA"
Dim strSplit() As String = Regex.Split("-",strBeforeSplit)
Log($"AfterAplit: ${strSplit(1)}"$)
CA100 is the SECOND value! Regex starts at the first - to split. means:
1st item is an empty string,
2nd Item CA100,
3rd Item ISTITUTO PERTINI VIA CARPACCIO N° 18 A
and 4th item N° 1 CHIAVE MECCANICA
B4X:
Dim strBeforeSplit As String
strBeforeSplit="-CA100-ISTITUTO PERTINI VIA CARPACCIO N° 18 A - N° 1 CHIAVE MECCANICA"
Dim strSplit() As String = Regex.Split("-",strBeforeSplit)
Log($"AfterAplit: ${strSplit(1)}"$)