基础库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

11 rivejä
324 B

  1. //
  2. // extension RegString on String {
  3. // // 正则匹配获取基础url,返回如:https://www.xyz.com
  4. // String getBaseUrl() {
  5. // RegExp exp = new RegExp(
  6. // "^((http://)|(https://))?([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}(/)");
  7. //
  8. // return exp.stringMatch(this);
  9. // }
  10. // }