code_junkie

Regex in Java, finding start and end tag

Nov 14th, 2011
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. return Pattern.compile(pattern,
  2. Pattern.CASE_INSENSITIVE | Pattern.MULTILINE |
  3. Pattern.DOTALL);
  4.  
  5. /// End right angle bracket left off intentionally:
  6. track_pattern_buf.append("<select");
  7. track_pattern_buf.append("(.*?)");
  8. track_pattern_buf.append("</select");
  9.  
  10. "<select[^>]*>(.+?)</selects*>"
  11.  
  12. "<select>([^<>]+)</select>"
  13.  
  14. "<s*selects*>(.*?)<s*/selects*>"
Add Comment
Please, Sign In to add comment