(String regex)
| 525 | } |
| 526 | |
| 527 | public boolean matches(String regex) { |
| 528 | return Pattern.matches(regex, this); |
| 529 | } |
| 530 | |
| 531 | public String replaceFirst(String regex, String replacement) { |
| 532 | return Pattern.compile(regex).matcher(this).replaceFirst(replacement); |