Mr Blue Sky Active Member Licensed User Longtime User Mar 10, 2014 #1 hi, I would like to select the text after the dash. EX: ALPES - ALBERVILLE "i want select ALBERVILLE" the character string is never the same size only the dash is always present I search to http://www.b4x.com/android/forum/threads/selecting-words-or-portion-of-texts.34956/#content and no have solution ? If possible you help me thanks.
hi, I would like to select the text after the dash. EX: ALPES - ALBERVILLE "i want select ALBERVILLE" the character string is never the same size only the dash is always present I search to http://www.b4x.com/android/forum/threads/selecting-words-or-portion-of-texts.34956/#content and no have solution ? If possible you help me thanks.
Mr Blue Sky Active Member Licensed User Longtime User Mar 10, 2014 #2 OK i understood the solution is : Dim myword As String myword = sf.SplitGetWord(Value, " - ", 2) Msgbox2(myword,"Value","", "Valider", "", bmp_icon) Upvote 0
OK i understood the solution is : Dim myword As String myword = sf.SplitGetWord(Value, " - ", 2) Msgbox2(myword,"Value","", "Valider", "", bmp_icon)
Erel B4X founder Staff member Licensed User Longtime User Mar 10, 2014 #3 Code: Copy Dim s As String = "ALPES - ALBERVILLE" Dim m As Matcher = Regex.Matcher("\- (.*)", s) If m.Find Then Log(m.Group(1)) End If Upvote 0
Code: Copy Dim s As String = "ALPES - ALBERVILLE" Dim m As Matcher = Regex.Matcher("\- (.*)", s) If m.Find Then Log(m.Group(1)) End If
Mr Blue Sky Active Member Licensed User Longtime User Mar 10, 2014 #4 thank Erel, i test too i think this is good more Upvote 0