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

Unlocking the Power of DevOps: A Comprehensive Review of DevOps Foundation Certification

In today’s fast-paced digital world, where software needs to be delivered quickly and reliably, DevOps has emerged as a game-changer. If you’re an IT professional, developer, or…

Unlock Your Data Potential: A Deep Dive into the DataOps Foundation Certification by DevOpsSchool

In today’s data-driven world, the ability to manage, process, and derive value from data efficiently is what separates leading enterprises from the rest. Yet, many organizations are…

Unlock Your DataOps Career with DevOpsSchool’s DataOps Foundation Certification

In the rapidly evolving world of data, companies are increasingly leveraging advanced data operations to stay competitive. DataOps is transforming the way businesses handle their data workflows,…

Mastering DataOps

In an age where data drives decisions, the role of DataOps in ensuring smooth and agile data operations has never been more crucial. As businesses continue to…

Choosing the Right DevOps Certification: A Complete Comparison Guide by DevOpsSchool

In today’s fast-evolving tech landscape, choosing the right DevOps certification can significantly shape your professional journey. Whether you’re a beginner looking to enter the DevOps world or…

CloudOps Foundation Certification: Your Gateway to Mastering Cloud Operations

In today’s digital-first era, businesses are scaling rapidly in the cloud—and behind that seamless scalability lies a powerful discipline known as Cloud Operations (CloudOps). If you’re an…

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