Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pattern = Pattern.compile("Действующие вещества:.*[^c]class"">(.*)[^<]</a>");
- matcher = pattern.matcher(s);
- while(matcher.find()){
- dop1.put("Действующие вещества", matcher.group(1));
- }
- String regex = "(?s)Действующие вещества:.*?class="">(.*?)</a>";
- String s = "Действующие вещества:</td>n" +
- " <td><a href="" class="">*</a></td>";
- Pattern pattern = Pattern.compile("(?s)Действующие вещества:.*?class="">(.*?)</a>");
- Matcher matcher = pattern.matcher(s);
- while(matcher.find()) {
- System.out.println("Действующие вещества: "+ matcher.group(1));
- }
- // => Действующие вещества: *
Add Comment
Please, Sign In to add comment