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
Most views runner!
Iterative Merge sort
Use of JS in Java (not my)
linkl
Java Q-2
Tree ZigZag Traversal
uraian angka
javaClassAr
FizzBuzz
Queue using linked list