fork download
  1. import java.util.*;
  2. import java.util.regex.*;
  3. import java.lang.*;
  4. import java.io.*;
  5.  
  6. class Ideone
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. final var r = "(?:\\P{M}\\p{M}*+){14}";
  11. //System.out.println(new String(Character.toChars(129130)));
  12. //System.out.println(new String(Character.toChars( 45)));
  13. final var p = java.util.regex.Pattern.compile(r);
  14. final var am = p.matcher("0123456789 "+new String(Character.toChars(129130))+" ABCDEFGHI");
  15. final var bm = p.matcher("0123456789 "+new String(Character.toChars( 45))+" ABCDEFGHI");
  16. System.out.println("SPLIT.fa "+am.find(0));
  17. System.out.println("SPLIT.fb "+bm.find(0));
  18. }
  19. }
Success #stdin #stdout 0.15s 58148KB
stdin
Standard input is empty
stdout
SPLIT.fa true
SPLIT.fb true