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

TeamCity Training in Pune for CI CD Automation

TeamCity is a powerful Java-based continuous integration server developed by JetBrains that helps software teams build, test, and deliver applications efficiently. In today’s competitive software development landscape,…

TeamCity Training in Mumbai for CI CD Automation

TeamCity is a powerful Java-based continuous integration server developed by JetBrains that helps software teams build, test, and deliver applications efficiently. In today’s competitive software development landscape,…

TeamCity CI CD Training Program in Kolkata

TeamCity is a powerful Java-based continuous integration server developed by JetBrains that helps software teams build, test, and deploy their applications efficiently. In today’s fast-moving software development…

Expert TeamCity Training for IT Professionals in Hyderabad

TeamCity is a powerful Java-based continuous integration server that helps development teams build and deploy software more efficiently. In today’s fast-moving software development world, teams need reliable…

Expert TeamCity Training for IT Professionals in Chennai

TeamCity is a powerful continuous integration tool that helps teams build and deliver software faster and more reliably. In today’s fast-paced development world where multiple programmers work…

TeamCity Training for Professionals in Bangalore, India

Continuous Integration and Continuous Delivery (CI/CD) have become essential practices in modern software development. In Bangalore, India’s tech hub, professionals are looking for quality training programs to…

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