0

Hi, I don't have any idea about regular expression. Can some on please suggest a good website for regular expression Tutorial. Also

1.Can some one please help me to generate a regular expression meeting all these requirements

  • A strings minmum length must be 3 charcters, and maximum length must be 12 characters.
  • A stirng cannot contain any kind of special characters except a period, period is not accepted at beginning of a string.
  • String can accept numbers from 0 to 9.
  • Spaces are also not allowed
  1. Please provide explanation for your answer too

Edited by andarivaadu1: Fixed Typos, Changed question

4
Contributors
3
Replies
5
Views
5 Years
Discussion Span
Last Post by seslie
0

Hello andarivaadu1,

These links, link1, link 2, link3 would help.

Bonus:

A strings minmum length must be 3 charcters, and maximum length must be 12 characters

     ^[a-zA-z]{3,12}$  

 ^         #start of regex
[a-zA-Z]   # Match characters and symbols in the list, a-z, A-Z
{3,12}     # Length at least 3 characters and maximum length of 12 
$          #end of regex

Regards,
Seslie

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.