Android Question Regex B4A & B4J

B4A: 5 strings - "" "1" "2" "3" "4"
You never quit Mario. I quickly tested and it shows 4 elements in B4A
Code:
Dim components() As String
    components = Regex.Split("", "1234")
    Log(components.Length)
    For i =0 To components.Length-1
        Log(components(i))
    Next
 
Upvote 0
1701694405500.png
 
Upvote 0
I tested it too and I got 4 elements.
 
Upvote 0
Where Regex come from?
Is it included in Java JDK?
Could it be something related to the Java version?
@LucaMs which version of Java do you have in your path?
I tested with Open JDK 14 and 17.
 
Upvote 0
@lucas, can you upload the project that produces this issue?
 
Upvote 0
It has nothing to do with the JDK you're using, but Android's implementation of (java.util.regex.Pattern) (if it is an actual problem). Are you doing this on a real device? What Android version?

Links:
 
Upvote 0
I am speechless
 
Upvote 0
This may be related to this issue:

 
Upvote 0
This can be a really important information to think about if some user/client report a bug and we are not able to replicate it.
Something to remeber.
 
Upvote 0

Similar Threads

  • Question Question
Android Question Regex text
Replies
2
Views
3K
  • Question Question
Android Question Regex.split
Replies
4
Views
3K
  • Question Question
Android Question Regex problem
Replies
18
Views
8K
  • Question Question
Android Question Regex split
Replies
2
Views
4K
Back
Top