How to extract URLs correctly before and after having Chinese in the backgroundplease help to make the following changesMediatek\frameworks\base\op\java\com\mediatek\op\util\defaultpatterns.javapublic static Pattern Getweburl (final string Engirichar, final string Goodirichar,
Final String Topleveldomainstrforweburlexpand) {
Return Pattern.compile (
"((?:( http|https| http| https|rtsp| RTSP): \\/\\/(?:(?: [a-za-z0-9\\$\\-\\_\\.\\+\\!\\*\\ ' \ \ \) '
+ "\\,\\;\\?\\&\\=]| (?:\ \%[A-FA-F0-9]{2})) {1,64} (?: \ \:(?: [A-za-z0-9\\$\\-\\_]
+ "\\.\\+\\!\\*\\" \ \ \ \\,\\;\\?\\&\\=]| (?:\ \%[A-FA-F0-9]{2})) {1,25})? \\@)? "
+ "((?:(?: [" + Engirichar + "] [" + Engirichar + "\\-]{0,64}\\.) + "//named Host
+ Topleveldomainstrforweburlexpand
+ "| (?:(? : 25[0-5]|2[0-4] "//or IP address
+ "[0-9]| [0-1] [0-9] {2}| [1-9] [0-9]| [1-9]) \\. (?: 25[0-5]|2[0-4][0-9] "
+ "| [0-1] [0-9] {2}| [1-9] [0-9]| [1-9]|0] \ \. (?: 25[0-5]|2[0-4][0-9]| [0-1] "
+ "[0-9]{2}| [1-9] [0-9]| [1-9]|0] \ \. (?: 25[0-5]|2[0-4][0-9]| [0-1] [0-9] {2} "
+ "| [1-9] [0-9]| [0-9])) "
+ "(?:\ \:\\d{1,5}) " Plus option port number
+ "(\\/(?:(?: [" + Goodirichar + "\\;\\/\\?\\:\\@\\&\\=\\#\\~"//Plus option query params
+ "\\-\\.\\+\\!\\*\\" \ \ \ \\,\\_]) | (?:\ \%[A-FA-F0-9]{2}))? "
+ "(?:\ \b|$) "); And finally, a word boundary or end of
Input. This was to the stop Foo.sure from
Matching as Foo.su }
Android SMS Regular expression error