3

Is there a way in regex to match all kinds of quotes? I'm matching the ' character but is there a way to change the below regex pattern to also match ``` and `?

final Pattern QUOTE_PATTERN = Pattern.compile("'''.*?'''|'.*?'", Pattern.DOTALL);
final Matcher quoteMatcher = ContentCommonConstants.QUOTE_PATTERN.matcher(value);
4

1 回答 1

2
于 2013-09-16T18:24:22.623 回答