43 |
import java.util.WeakHashMap; |
import java.util.WeakHashMap; |
44 |
import java.util.Locale; |
import java.util.Locale; |
45 |
import java.util.regex.Pattern; |
import java.util.regex.Pattern; |
46 |
|
import java.util.regexp.PatternSyntaxException; |
47 |
import java.io.Serializable; |
import java.io.Serializable; |
48 |
import java.io.UnsupportedEncodingException; |
import java.io.UnsupportedEncodingException; |
49 |
import java.io.CharConversionException; |
import java.io.CharConversionException; |
1122 |
* @param regex the pattern to match |
* @param regex the pattern to match |
1123 |
* @return true if the pattern matches |
* @return true if the pattern matches |
1124 |
* @throws NullPointerException if regex is null |
* @throws NullPointerException if regex is null |
1125 |
* @throws PatternSyntaxExceptions if regex is invalid |
* @throws PatternSyntaxException if regex is invalid |
1126 |
* @see Pattern#matches(String, CharSequence) |
* @see Pattern#matches(String, CharSequence) |
1127 |
* @since 1.4 |
* @since 1.4 |
1128 |
*/ |
*/ |
1140 |
* @param replacement the replacement string |
* @param replacement the replacement string |
1141 |
* @return the modified string |
* @return the modified string |
1142 |
* @throws NullPointerException if regex or replacement is null |
* @throws NullPointerException if regex or replacement is null |
1143 |
* @throws PatternSyntaxExceptions if regex is invalid |
* @throws PatternSyntaxException if regex is invalid |
1144 |
* @see #replaceAll(String, String) |
* @see #replaceAll(String, String) |
1145 |
* @see Pattern#compile(String) |
* @see Pattern#compile(String) |
1146 |
* @see Pattern#matcher(CharSequence) |
* @see Pattern#matcher(CharSequence) |
1161 |
* @param replacement the replacement string |
* @param replacement the replacement string |
1162 |
* @return the modified string |
* @return the modified string |
1163 |
* @throws NullPointerException if regex or replacement is null |
* @throws NullPointerException if regex or replacement is null |
1164 |
* @throws PatternSyntaxExceptions if regex is invalid |
* @throws PatternSyntaxException if regex is invalid |
1165 |
* @see #replaceFirst(String, String) |
* @see #replaceFirst(String, String) |
1166 |
* @see Pattern#compile(String) |
* @see Pattern#compile(String) |
1167 |
* @see Pattern#matcher(CharSequence) |
* @see Pattern#matcher(CharSequence) |
1202 |
* @param limit the limit threshold |
* @param limit the limit threshold |
1203 |
* @return the array of split strings |
* @return the array of split strings |
1204 |
* @throws NullPointerException if regex or replacement is null |
* @throws NullPointerException if regex or replacement is null |
1205 |
* @throws PatternSyntaxExceptions if regex is invalid |
* @throws PatternSyntaxException if regex is invalid |
1206 |
* @see Pattern#compile(String) |
* @see Pattern#compile(String) |
1207 |
* @see Pattern#split(CharSequence, int) |
* @see Pattern#split(CharSequence, int) |
1208 |
* @since 1.4 |
* @since 1.4 |
1222 |
* @param regex the pattern to match |
* @param regex the pattern to match |
1223 |
* @return the array of split strings |
* @return the array of split strings |
1224 |
* @throws NullPointerException if regex or replacement is null |
* @throws NullPointerException if regex or replacement is null |
1225 |
* @throws PatternSyntaxExceptions if regex is invalid |
* @throws PatternSyntaxException if regex is invalid |
1226 |
* @see #split(String, int) |
* @see #split(String, int) |
1227 |
* @see Pattern#compile(String) |
* @see Pattern#compile(String) |
1228 |
* @see Pattern#split(CharSequence, int) |
* @see Pattern#split(CharSequence, int) |