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
luas
Basic LinkedList in Java
Initials
classwork
Kochergina_1
has a
kkk
// Java Coding Challenge - 09: Find out duplicate numbers using HashSet
Abhay
Basic LinkedList in Java