On Thursday 02 March 2006 13:30, maillists wrote:
> Hi,
>
> I'm trying to filter quotes out of a web form and replace them with
> "
>
>     $Values->{text_field} =~ s/"/"/;
>     return;

The above would replace the first " with " on the first
line of the field; if your field contains newlines, and if you
want to replace all " and ' characters, try:

     $Values->{text_field} =~ s/(?:"|')/"/sg;

>
> However, This does not seem to work. Is this right?
> Also, I would like to replace the single quote '
>
> Thanks
> Rick

-- 
Aloha => Beau;


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to