15,887,485 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13951173 (Top 9 by date)
Member 13951173
28-Aug-18 2:48am
View
Thank you so much, It works...
Member 13951173
26-Aug-18 22:11pm
View
This is what I have search and try https://jsfiddle.net/da90nt3c/49/
Like in the text box only:
+60123456789 //true
0123456789 // true
++012345678 //false
012544++++516 // false
Like it just only allow user insert the plus once. But the plus can be optional. But can't have more than one plus
Member 13951173
23-Aug-18 3:34am
View
Means I just replace the * to ? only
Member 13951173
21-Aug-18 3:28am
View
Means like this????
jQuery(function () {
$("#hpno").keyup(function () {
var VAL = this.value;
var phone = new RegExp(/^\+?[0-9]+$/);
if (phone.test(VAL)) {
alert('Great, you entered Phone Num');
}
});
});
Member 13951173
20-Aug-18 21:24pm
View
I have try both codes in my coding the first one it can't insert + character an the second example that you gave everything won't allow even numbers....:(
Member 13951173
17-Aug-18 5:46am
View
How to see it in notepad++ ??
Member 13951173
17-Aug-18 5:30am
View
I did try but it still allow alphabet
Member 13951173
17-Aug-18 4:03am
View
new RegExp("^[0-9]+$") Means this change to like this?
new RegExp("^\+?\d{7,15}$") <-- like this?
Member 13951173
16-Aug-18 21:31pm
View
Its still have problem, when I tried the one u recommend it straight will allow alphabet
Show More