G
Guest
How can I implement this?
(Without checking characters one-by-one with my code)
String a = " abc";
int b = a.indexOfRegex("\s", 0);
// b is 2 (index of first non-whitespace character)
(Without checking characters one-by-one with my code)
String a = " abc";
int b = a.indexOfRegex("\s", 0);
// b is 2 (index of first non-whitespace character)