HI everyone, i am writing a web application but i need to validate certain strings from the client side using regular expressions in javascript. i want to validate phone numbers for my country, Uganda. can anyone help me with a regular expression validation script that allows any number starting with +256 and the rest are numbers ie +256 - 000 - 000 - 000

thanks

1) It is much more simple not allow to write the wrong number than to validate it (make the +256 fixed)
2) the very clear introduction to javasript RegExp is for example here
3) be so kind and write a piece of HTML page to show what and where will be written, checked, announced, and returned

pleased to read you :-)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.