Care este rezultatul urmatoarei secvente de cod?
String sir1 = "aaabbc";
String sir2 = sir1.replaceAll("", "e");
System.out.println(sir2);
Selectati ce string-uri se potrivesc cu expresia de mai jos folosind functia matches().
String data = LocalDate.of(2003, 2, 5).toString();
String regex = data.replaceAll("[13579]","");
Selectati ce string-uri se potrivesc cu expresia de mai jos folosind functia matches().
String regex = LocalDate.of(1999, 9, 19).toString();
Selectati numarul de string-uri care se potrivesc cu expresia de mai jos folosind functia find().
String regex = "^a?$";
Folosind functia matches(), sunt echivalente rezultatele urmatoarelor 2 expresii Regex pentru orice sir?
String regex = "a{0,}a";
String regex = "a{1,}";
Selectati ce string-uri se potrivesc cu expresia de mai jos folosind functia matches().
String regex = ".{,3}";
Що визначає добру збіжність у методі простої ітерації?
Selectati ce string-uri se potrivesc cu expresia de mai jos folosind functia matches().
String regex = ".*a.*a.?a.*";