Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
DBMan
:
Discussions
:
UID's containing underscores and dots
Previous Thread
Next Thread
Print Thread
View Threaded
Jul 9, 2001, 2:59 PM
eric74
User
(159 posts)
Jul 9, 2001, 2:59 PM
Post #1 of 3
Views: 2581
Shortcut
UID's containing underscores and dots
Is it possible to make it so that UserID's can contain underscores (_) and dots (.)?
The default way reject this...
Thanks!!!
Jul 9, 2001, 4:33 PM
Stealth
Veteran
(17240 posts)
Jul 9, 2001, 4:33 PM
Post #2 of 3
Views: 2501
Shortcut
Re: UID's containing underscores and dots
In reply to
Sure...use regular expressions...
Some have been provided in these forums...search for
regular expressions
.
Regards,
Eliot Lee
Jul 9, 2001, 7:01 PM
Paul
Veteran
(19537 posts)
Jul 9, 2001, 7:01 PM
Post #3 of 3
Views: 2496
Shortcut
Re: UID's containing underscores and dots
In reply to
In sub signup change:
Code:
unless ((length($in{'userid'}) >= 3) and (length($in{'userid'}) <= 12) and ($in{'userid'} =~ /^[a-zA-Z0-9]+$/)) {
to
Code:
unless ((length($in{'userid'}) >= 3) and (length($in{'userid'}) <= 12) and ($in{'userid'} =~ /^[a-zA-Z0-9._]+$/)) {
Using . and _ may cause problems so beware.
Installs:
http://wiredon.net/gt
FAQ
:
http://www.perlmad.com
Previous Thread
Next Thread
Print Thread
View Threaded