MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

Regex Validations

Regular Expression or (Regex) is one of the foremost effective, adaptable, and proficient content preparing approaches. Regex has its possess wordings, conditions, and sentence structure; it is, in a sense, a scaled down programming language.

example:-

This regex is use for Phone number validation

/^[(]{0,1}[0-9]{3}[)]{0,1}[-\s\.]{0,1}[0-9]{3}[-\s\.]{0,1}[0-9]{4}$/;

This simple regular expression just checks for 2 digits / 2 digits / 4 digits date format

/^\d{2}\/\d{2}\/\d{4}$/

Complex regex for date

/^(0[1-9]|1[0-2])\/(0[1-9]|1\d|2\d|3[01])\/(19|20)\d{2}$/

If you want to allow only alphanumeric characters, use this regular expression:

/^[a-zA-Z0-9]*$/

Decimal Numbers For decimal numbers with one decimal point, the regular expression is:

/^[0-9]+\.?[0-9]*$/

If you want to allow only Standard email address

/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

If you want supports alphabets and numbers no special characters except underscore(‘_’) min 3 and max 20 characters

/^[A-Za-z0-9_]{3,20}$/;

If you want your password supports special characters and here min length max 20 charters only

/^[A-Za-z0-9!@#$%^&*()_]{6,20}$/;

Related Posts

Your Complete Guide to CISM Certification Training

The CISM Certification Training prepares professionals to manage, design, and oversee enterprise information security programs. Offered by ISACA, this leadership-focused credential covers governance, risk management, program development, and incident…

Complete Guide to CISA Certification Training Courses

The CISA Certification Training Course equips professionals with skills to audit, control, and secure enterprise IT systems. Offered by ISACA, this globally recognized credential covers information systems auditing from…

Your Guide to Certified Kubernetes Security Specialist Success

The Certified Kubernetes Security Specialist (CKS) Certification Training Course prepares IT pros to protect Kubernetes environments from threats. This advanced credential from CNCF and the Linux Foundation proves hands-on…

Your Guide to Certified Kubernetes Application Developer Success

The Certified Kubernetes Application Developer (CKAD) certification equips developers with hands-on skills to build and deploy cloud-native apps on Kubernetes. This credential stands out in today’s job market by…

Your Complete Guide to Becoming a Certified Kubernetes Administrator

The Certified Kubernetes Administrator (CKA) Certification Training Course teaches you to manage Kubernetes clusters like a pro. Kubernetes handles containers across many servers. It keeps apps running smoothly at…

Your Complete Guide to Becoming a Certified Jenkins Engineer

The Certified Jenkins Engineer program gives you hands-on skills to build and manage CI/CD pipelines. Jenkins, the popular open-source tool, automates testing and deployment, helping teams deliver code faster…

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x