B4J Question how to find intervals i a string? - emexes (first post)    Dec 22, 2024   (1 reaction) I usually use Regex.Split because it puts all the fields (substrings) into an array ready for whatever the next processing step is.
The .Trim removes leading and trailing spaces.
You can just as easily use commas or semicolons or tabs as separators. Share My Creation Split & merge image tool - kimstudio    Jan 13, 2023   (8 reactions) To split an image into grids then merge them into a new image. Made in a fast and dirty way so just correct bugs or fit for your own needs with attached source code. I think it could be useful to manipulate game sprite sheet. 138054 B4J Question Splitting an empty TextField.Text - LucaMs    Nov 25, 2022 'TextField1.Text is empty - just loaded the layout.
'Logs zero.
Log("TextField1.Text.Length = " & TextField1.Text.Length)
Dim str() As String = Regex.Split(",", TextField1.Text)
'Logs 1 instead of zero.
Log("str length = " & str.Length)
EDIT:
Dim str() As String = Regex.Sp B4A Question split with regex - derez (first post)    Jan 17, 2018   (1 reaction) From the type documentation, exactly what you want: Split (Pattern As String, Text As String) As String() Splits the given text around matches of the pattern. Note that trailing empty matches will be removed. Example: Dim components() As String components = Regex.Split(",", "abc,def,,ghi") 'returns: Italian [risolto] Split si comporta in modi diversi, perché? b4j - LucaMs (first post)    Mar 28, 2022   (1 reaction) Dim tag As String = $" D.M.I. S.r.l.;DMI S.r.l., azienda giovane nel mondo degli immobili e delle imprese che operano a 360 gradi nel mondo dell'edilizia, che opera con personale d'esperienza nel settore della ristrutturazione e della vendita, sia per privati sia per aziende.;Referente: Sig. Todesch B4J Question Split text file after end of line (EOL) - emexes (first post)    Mar 20, 2021   (1 reaction) Give this untested thought a burl:
array = Regex.Split("(\c\r?|\c?\r)", myText) B4A Question How to read the first line of a .txt file? - Matteo Granatiero (first post)    Sep 25, 2018 what is SplitText? Bug? InsertAt in a LIST - Erel (first post)    May 07, 2016   (3 reactions) Regex.Split returns an array. When an array is converted to a List it is only wrapped. It is not copied. It is equivalent to using List.Initialize2: https://www.b4x.com/basic4android/images/SS-2016-05-07_21.27.10.png If you want it to be modifiable then you need to: Dim lstTmp As List lstTmp.Init B4A Question Spliting Of IPAddress - DonManfred (first post)    Nov 02, 2018   (3 reactions) The dot has a special meaning in regex. It must be escaped...
Dim IpadrressToSplit() As String = Regex.Split("\.", "192.168.0.44")
Log(IpadrressToSplit(0))
Log(IpadrressToSplit(1))
Log(IpadrressToSplit(2))
Log(IpadrressToSplit(3)) B4A Question reading comma separated values text file - freedom2000 (first post)    May 01, 2017   (1 reaction) or try string function library : Split (CurrentString As String, Split_At_Delimiter As String) As List Returns a LIST of items from the string split at the Delimiter. EXAMPLE: Dim ANS As List ANS = SF.Split("This is a test string.", " ") Dim strSource As String = "-1.4985018,52.4053273,1983688820 Page: 1   2   3   4   5   6   7   Powered by ColBERT |