CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions:
replace character

 



John12345
New User

Jun 28, 2002, 1:00 PM

Post #1 of 2 (2437 views)
replace character Can't Post

how can i replace "#" into a "&23" on a string.

$str=12345#ABC

thanks


Jean
User


Jun 30, 2002, 5:05 AM

Post #2 of 2 (2433 views)
Re: [John12345] replace character [In reply to] Can't Post

Something like
$str =~ s/#/&23/gms;


Jean Spector
SQA Engineer @ Exanet
jean.spector@softhome.net


There are only 10 types of people in the world -
Those who understand binary, and those who don't.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives