Bug? Matcher.Find is reset once first examined. - RandomCoder    Jun 11, 2016 had found and I ended up breaking my code. With a little fault finding I worked out that the m.find... As String, blnCaseSensitive As Boolean, intExtractGroup As Int) As String
Dim m As Matcher
If... B4A Code Snippet Check for FortAwesome / Material Icon - Robert Valentino    Sep 22, 2025   (3 reactions)
Dim m As Matcher
m = Regex.Matcher(faPattern, str)
' Matcher.Find returns True if any part of the string matches the pattern.
Return m.Find
End Sub... MaterialPattern As String = "(material-icons|mi)-+"
Dim m As Matcher
m = Regex.Matcher(MaterialPattern, str)
' Matcher.Find returns True if any part... B4A Code Snippet [B4X] Extract the first letter of a first and last name - TILogistic    May 16, 2024   (9 reactions) = "(\w+).*\W+(\w+)$" Dim Matcher As Matcher = Regex.Matcher(Pattern, Text) Result.Initialize If Matcher.Find Then For i = 1 To Matcher.GroupCount Result.Append(Matcher.Group(i).SubString2(0,1)) Next End If Result.ToString.ToUpperCase End Sub... B4A Example [B4X] Simple function to highlight searchword in texts in CSBuilder Format - fredo    Dec 28, 2024   (10 reactions) HighlightCsTextWithRegex(OriginalText As String, searchWord As String) As CSBuilder Dim escapedSearchWord As String = RegexEscapeSpecialChars(searchWord) Dim pattern As String = "(?i)" & escapedSearchWord ' (?i) case-insensitive! Dim matcher As Matcher = Regex.Matcher(pattern....Find Dim startIndex As Int = matcher.GetStart(0) Dim endIndex As Int = matcher...This simple function highlights all occurrences of a search term in a given text and returns... B4J Code Snippet b4j Get Battery Info - jkhazraji    Feb 6, 2026   (8 reactions) .Find Then Return matcher.Group(1) End If ' Alternative pattern for paths... matcher2 As Matcher = Regex.Matcher(pattern2, output) If matcher2.Find Then Return matcher2...) If matcher.Find Then designCapacity = matcher.Group(1) Exit... Dim matcher As Matcher = Regex.Matcher(pattern, html) If matcher.Find Then... matches.Initialize Do While matcher.Find matches.Add(matcher.Group(1)) Loop... B4A Code Snippet [B4X] Occurrences - LucaMs    Apr 24, 2023   (12 reactions) , CaseSensitive As Boolean) As Int Dim MatcherX As Matcher Dim Counter As Int If CaseSensitive Then MatcherX = Regex.Matcher(Pattern, Text) Else MatcherX = Regex.Matcher2(Pattern, Regex.CASE_INSENSITIVE, Text) End If Counter = 0 Do While MatcherX.Find... Dim Matcher1 As Matcher = Regex.Matcher("\d+", Text) Do While Matcher1.Find lstResult.Add(Matcher1.Match) Loop Return lstResult End Sub Note: I know very little about... B4A Code Snippet [B4X] CSBuilder marking based on regex pattern - Erel    Dec 25, 2025   (20 reactions)   tags: CSS, CSBuilder CSBuilder is supported by B4A and B4J. There are some differences in the supported properties. A more powerful cross platform alternative: BCTextEngine / BBCodeView - Text engine + BBCode parser + Rich Text View This sub searches for matches and uses CSBuilder to mark the matches. 157518... Dim lastMatchEnd As Int = 0 Dim m As Matcher = Regex.Matcher(Pattern, Input) Do While m.Find Dim currentStart As Int = m.GetStart(GroupNumber) cs.Append(Input.SubString2... Spanish [B4J] [Solucionado] Prevenir introduccion del caracter "espacio" mediante la combinacion de "Alt + 255" - TILogistic (first post)    Jun 9, 2025   (1 reaction) B4X: Ejemplo busqueda. Dim Text As String = $"HolaÿMundo Texto sin el carácter especial. Aquí hay un Alt+255: ÿ"$ Dim Pattern As String = "\xFF" Dim Matcher As Matcher = Regex.Matcher(Pattern, Text) Do While Matcher.Find Log(Matcher.Match) Loop 164658 usar Regex.Replace 'reemplazar Regex.IsMatch 'verificar si existe ... B4A Question Regex help - drgottjr (first post)    Sep 13, 2024   (1 reaction) .Matcher($"<A HREF="(.+?)">"$, s)
If matcher.Find Then... As Matcher = Regex.Matcher($"(<A HREF=".+?">)"$, s2)
If matcher.Find Then... Spanish Hace el Regex.Matcher , Dim m As Matcher = Regex.Matcher("([+-]\d+\.\d+)", location) - TILogistic (first post)    Feb 25, 2026 Bien, Aquí puede probar el regex
https://regex101.com/r/TCCTth/1
y estas en lo correcto, el find busca el siguiente substring del patron del matches.
If m.Find Then lat = m.Group(1)
If m.Find Then lon = m.Group(1)
Es similar al hacerlo con Do While Matcher1.Find
170270... Page: 1   2   3   4   5   6   7   |