Technical answers from my Stack Overflow history, with source links and licenses.
- reputation
- 0
- people reached
- ~0.0m
- badges
- 21137149
- answers
- 0
Stack Overflow badges
Showing 6 of 6 answers tagged regex
Exported May 9, 2026
- 7score13.7Kviewsnostatus
- 17score11.5KviewsyesstatusCC BY-SA 4.0
Regular expression matching Android package name
A valid Android package name is described in the AndroidManifest documentation for the package attribute: The name should be unique. The name may contain uppercase or lowercase letters ('A' through 'Z'), numbers, and...
- 0score1.4KviewsnostatusCC BY-SA 3.0
Regex for splitting string into arraylist in java
It looks like an easy solution if this is the only String you are attempting to split. Something like this would work for the input String you provided in your question: You can use http://regexpal.com/ to help you in...
- 1score628viewsnostatusCC BY-SA 4.0
Regex for First name only English
\S matches any non-whitespace character (equal to [^\r\n\t\f\v ] ). I am no regex ninja, but this should work: ^[A-Za-z][A-Za-z ]{0,7} . See: https://regex101.com/r/xQe81c/4
- 1score249viewsyesstatusCC BY-SA 3.0
regex to get particular values from a string
You can use ^[^ ]+ . Example: See: https://regex101.com/r/aZYgvC/1
- 0score101viewsnostatusCC BY-SA 3.0
Extract correct combination of digits from string
This works with all the examples from your logcat messages: https://regex101.com/r/P7lICp/1 Personally, I would rethink what you are doing.