localregex
짐바브웨에서 흔히 사용되는 정규 표현식 패턴 모음입니다. 정규 표현식 패턴에는 휴대폰 번호, 여권, 차량 등록번호, 운전면허증, 이메일 주소 및 비밀번호가 포함됩니다
마이클 데라의 간단한 정규식 타입스크립트 패키지의 다트 구현
^1.23.1^6.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
style: very good analysis License: MIT Coverage
This plugin allows developers to check if an input matches common regex patterns in Zimbabwe and other countries. This plugin works for all Flutter supported platforms i.e. Android, iOS, Web and Desktop (Linux, Windows & MacOS).
Developed by Ngonidzashe Mangudya. Special shoutout to Kudakwashe Kuzvindiwana & Donald Chinhuru for pushing this package the most.
dependencies:
localregex: <version>
flutter pub add localregex
import 'package:localregex/localregex.dart';
Note that declaration and initialization is no longer necessary
LocalRegex.isNetone('mobile_number');
LocalRegex.isEconet('mobile_number');
LocalRegex.isTelecel('mobile_number');
LocalRegex.isZimMobile('mobile_number');
LocalRegex.isValidMobile('mobile_number');
LocalRegex.isZimLandline('landline_number');
LocalRegex.isEmail('email_address');
LocalRegex.isZimID('national_id');
LocalRegex.isZimPassport('passport_number');
LocalRegex.isZimNumberPlate('number_plate');
LocalRegex.isZimDriversLicence('drivers_license');
LocalRegex.isUrl("https://www.google.com");
String? number = '+263777213388'.formatNumber(formatType: FormatType.regular);
LocalRegex.isPassword('your_password');
This is the general format of mobile numbers e.g. 0777213388
FormatType.regular
This is the mobile number format with country code but no + sign e.g. 263777213388
FormatType.countryCode
This is the mobile number format with country code and + sign e.g. +263777213388
FormatType.countryCodePlus
Here the output format to be used is 11-223344 K 55 as found on most national identity documents in Zimbabwe
'11223344K55'.formatID(formatType: IdFormatType.proper); // > 11-223344 K 55
You can validate Student IDs for multiple tertiary institutions in Zimbabwe.
LocalSchools.hit.isStudent('studentID')
| https://avatars.githubusercontent.com/u/38191932?v=4 Ngonidzashe Mangudya |
https://avatars.githubusercontent.com/u/52527906?v=4 Kudakwashe Kuzvindiwana |
https://avatars.githubusercontent.com/u/47761288?v=4 Donald Chinhuru |
||||
| https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg Add your contributions | ||||||