패키지, 저장소 및 앱 카테고리 검색

패키지 상세v4.0.9

localregex

짐바브웨에서 흔히 사용되는 정규 표현식 패턴 모음입니다. 정규 표현식 패턴에는 휴대폰 번호, 여권, 차량 등록번호, 운전면허증, 이메일 주소 및 비밀번호가 포함됩니다

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
192
좋아요
22
Pub 점수
150

패키지 설치

flutter pub add localregex

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

LocalRegex는 짐바브웨에서 일반적인 데이터 검증을 위해 사전 정의된 정규 표현식을 제공하는 플러터 패키지입니다. 휴대폰 번호, 여권, 차량 등록번호, 운전면허증, 이메일 주소 및 비밀번호에 대한 패턴이 포함되어 있습니다. 짐바브웨 사용자를 대상으로 앱을 개발하는 개발자를 위해 설계되었으며, 정확하고 지역적으로 적합한 정규 표현식 규칙을 통해 입력 검증을 간편하게 만듭니다. Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼을 지원하여 환경 간 일관된 검증을 보장합니다.

사용 사례

  • 짐바브웨 모바일 번호 검증
  • 여권 번호 확인
  • 차량 번호판 형식 확인
  • 운전면허 정보 검증
  • 이메일 및 비밀번호 입력 검증
  • 로컬 애플리케이션에서의 폼 검증

주요 기능

  • 짐바브웨 전용 정규 표현식 패턴
  • 다양한 입력 유형 지원
  • 크로스 플랫폼 호환성
  • pub를 통한 간편한 통합
  • 사전 테스트 완료 및 신뢰할 수 있는 패턴
  • 경량이고 집중된

적합한 대상

  • 짐바브웨용 모바일 및 웹 앱
  • 정부 또는 신원 확인 시스템
  • 사용자 등록 양식
  • 현지 맥락에서의 데이터 수집 도구
  • 정확한 로컬 형식이 필요한 앱

고려 사항

  • 짐바브웨 기준에 국한됨
  • 새로운 형식을 위해 수동 업데이트가 필요합니다
  • 국제 사용에 적합하지 않습니다
  • 외부 소스에 대한 유지보수에 의존
  • 내장된 UI 컴포넌트 없음
  • 검증 로직은 개발자가 구현해야 합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

LocalRegex

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.

Usage

Add dependency
dependencies:
  localregex: <version>
Or
flutter pub add localregex
Import package
  import 'package:localregex/localregex.dart';

Note that declaration and initialization is no longer necessary

Check if a mobile number matches patterns for Econet, Netone or Telecel numbers
LocalRegex.isNetone('mobile_number');
LocalRegex.isEconet('mobile_number');
LocalRegex.isTelecel('mobile_number');
Check if a mobile number matches any of the patterns for Econet, Netone or Telecel
LocalRegex.isZimMobile('mobile_number');
Check if mobile number is valid (recommended for numbers not from Zimbabwe)
LocalRegex.isValidMobile('mobile_number');
Check if Zimbabwean landline number is valid
LocalRegex.isZimLandline('landline_number');
Check if a supplied email matches proper email patterns
LocalRegex.isEmail('email_address');
Check if a supplied national id matches the pattern for Zimbabwean national id
LocalRegex.isZimID('national_id');
Check passport number
LocalRegex.isZimPassport('passport_number');
Check number plate
LocalRegex.isZimNumberPlate('number_plate');
Check driver's license
LocalRegex.isZimDriversLicence('drivers_license');
Check URL
LocalRegex.isUrl("https://www.google.com");
Check phone number and returns phone number in required format (for use with Zim numbers only)
String? number = '+263777213388'.formatNumber(formatType: FormatType.regular);
Check if password is valid (minimum of 8 characters, at least 1 special character, 1 capital letter, 1 numeric character)
LocalRegex.isPassword('your_password');

Mobile Number Format Types

Regular

This is the general format of mobile numbers e.g. 0777213388

FormatType.regular
Country Code

This is the mobile number format with country code but no + sign e.g. 263777213388

FormatType.countryCode
Country Code Plus

This is the mobile number format with country code and + sign e.g. +263777213388

FormatType.countryCodePlus

Format National ID

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

School Student IDs

You can validate Student IDs for multiple tertiary institutions in Zimbabwe.

LocalSchools.hit.isStudent('studentID')

Contributors


Ngonidzashe Mangudya

Kudakwashe Kuzvindiwana

Donald Chinhuru
Add your contributions

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트