This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I'm in need of a regular expression to meet the following formatting rules:
1. The length of the input must be bigger than 0 and less/equal to 14. 2. Only letters 'a' to 'z', '-' (dash) and ' ' (space) are allowed. 3. The '-' and ' ' letters must be entered. 4. The '-' or the ' ' letter must not be either the first or last letter entered. 5. '-' must not be the immediate neighbour or adjacent to a ' '. 6. '-' or ' ' must no be the immediate neighbour of itself.
Thanks in advance,
Joined: Dec 30, 2002
Has anybody got any idea on this subject? Any help with the RegExp function would be hugely appreciated!