Re: How to substitute "# "

2002-10-10 Thread dan
$variable = "..ADDRESS 1 OR 2"; # here you'll need to assign the variable perl will check to see if it's address 1 or address 2 from the file. if ($variable eq "..ADDRESS 1" ) { s/\#/Apt/g; # subs # for "Apt" s/\(//g; # removes ( s/\)//g; # removes ) } some clever regex expert may be

RE: How to substitute "# "

2002-10-10 Thread NYIMI Jose (BMB)
From: Zary Necheva [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 09, 2002 8:59 PM > To: [EMAIL PROTECTED] > Subject: How to substitute "# " > > > Hi, > How can I substitute "# " or "( " or " )" with some text for ex > >

How to substitute “# “

2002-10-10 Thread Zary Necheva
Hi, How can I substitute “# “ or "( " or " )" with some text for ex Old File: ..ADDRESS 1. |a2112 N. ( Charles St.) #199 B ..ADDRESS 2. |a2112 N. Pulaski St. ..ADDRESS 1. |a2112 N. Pulaski Street #33 ..ADDRESS 2. |a2112 N. ROSEDALE STREET ..ADDRESS 1. |a2112 N. (Smallwood Street) ..ADDRESS 2