>>>>> "Colin" == Colin Johnstone <[EMAIL PROTECTED]> writes:

Colin> Gidday all,
Colin> In my mailing list form I have a hidden field that stores the date the
Colin> subscriber subscribed.

Colin> When processing the form the date in this format 3/1/2003 is converted to
Colin> 3%2F1%2F2003.

Colin> Can someone give me a regex to convert it back again please. Im only new to
Colin> perl and am struggling with regex's

Don't use a regex.  If you use CGI.pm, you never have to think about
encoding or decoding *anything*.

during HTML generation:

    param('my_hidden', '3/1/2003');
    print hidden('my_hidden');

during CGI response:

    my $input = param('my_hidden');

No mess, no stress.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to