Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
[a-zA-Z ]{0,12}
//Title of this code //'main' method must be in a class 'Rextester'. import java.util.*; import java.lang.*; import java.util.regex.Matcher; import java.util.regex.Pattern; class Rextester { public static void main(String args[]) { String FamilyName = "aaaaa aaaaaaabfbafdb"; Pattern regex = Pattern.compile("([a-zA-Z ]{0,12})"); Matcher m = regex.matcher(FamilyName); m.find(); System.out.println(m.group(1)); } }
run
|
edit
|
history
|
help
0
1(E)
Memory cleanup
Java messing around
Queue using linked list
exp 4
test1
piglatin
Prime Numbers
Bubble Sort
Problem Name: single_digit