Answer the question
In order to leave comments, you need to log in
How to get an array of strings separated by a regular expression?
String str = "<title>title text</title>";
String regex = "(<title>)(.*)(</title>)";
String newString = /*---- Что здесь написать, чтобы получить title text? ----*/
Answer the question
In order to leave comments, you need to log in
String str = "text1 |это то, что я хочу извлечь| text";
String[] arr = str.split("|");
System.out.println(arr[1]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question