Re: How can I translate it back to @ sign.

2008-06-30 Thread Aruna Goke
Amit Saxena wrote: Hi Aruna The solution my $invexcl = "\x{00A1}"; my $atsign = "\x{0040}"; $mailreci =~ s/(\w+)$invexcl(\w+)/$1$atsign$2/g; works fine. However that assumes that you know the control character to be substituted. If the file contains lots of control characters

Re: How can I translate it back to @ sign.

2008-06-30 Thread Amit Saxena
Hi Aruna The solution my $invexcl = "\x{00A1}"; my $atsign = "\x{0040}"; $mailreci =~ s/(\w+)$invexcl(\w+)/$1$atsign$2/g; works fine. However that assumes that you know the control character to be substituted. If the file contains lots of control characters and if the requireme

Re: How can I translate it back to @ sign.

2008-06-30 Thread Aruna Goke
Amit Saxena wrote: Try $email =~ s/[[:cntrl:]]/@/g; instead of $email =~ s/!/@/g; Infact try this in the entire file. Note :- This is on the assumption that there are no other control characters in the input file. On Fri, Jun 27, 2008 at 2:51 AM, Aruna Goke <[EMAIL PROTECTED]

Re: How can I translate it back to @ sign.

2008-06-30 Thread Amit Saxena
Try $email =~ s/[[:cntrl:]]/@/g; instead of $email =~ s/!/@/g; Infact try this in the entire file. Note :- This is on the assumption that there are no other control characters in the input file. On Fri, Jun 27, 2008 at 2:51 AM, Aruna Goke <[EMAIL PROTECTED]> wrote: > David Romero wrote: > >>

Re: How can I translate it back to @ sign.

2008-06-26 Thread David Romero
On Thu, Jun 26, 2008 at 4:21 PM, Aruna Goke <[EMAIL PROTECTED]> wrote: > David Romero wrote: >> >> use a regular expression >> >> my $email = 'user!dominio.com'; >> $email =~ s/!/@/g; >> ###Result [EMAIL PROTECTED] >> >> http://www.troubleshooters.com/codecorn/littperl/perlreg.htm >> >> >> On Thu,

Re: How can I translate it back to @ sign.

2008-06-26 Thread Aruna Goke
David Romero wrote: use a regular expression my $email = 'user!dominio.com'; $email =~ s/!/@/g; ###Result [EMAIL PROTECTED] http://www.troubleshooters.com/codecorn/littperl/perlreg.htm On Thu, Jun 26, 2008 at 1:35 PM, Aruna Goke <[EMAIL PROTECTED]> wrote: hi, i have the this log from my sms

Re: How can I translate it back to @ sign.

2008-06-26 Thread David Romero
use a regular expression my $email = 'user!dominio.com'; $email =~ s/!/@/g; ###Result [EMAIL PROTECTED] http://www.troubleshooters.com/codecorn/littperl/perlreg.htm On Thu, Jun 26, 2008 at 1:35 PM, Aruna Goke <[EMAIL PROTECTED]> wrote: > > hi, > > i have the this log from my sms gateway, howeve

How can I translate it back to @ sign.

2008-06-26 Thread Aruna Goke
hi, i have the this log from my sms gateway, however, the inverted exclamation mark was sent from the smsc as @. 2008-06-26 17:22:35 SMS request sender:+2342019122 request: 'maruna¡ontng.com,test,Love my test message' file answer: '' 2008-06-26 17:27:17 Receive SMS [SMSC:caxt] [SVC:] [ACT:]