Hi,

If you don't define input line separator $/=undef; Perl reads line by line
only.

The below code is to match ignore case in regex.

$inputline=~m/[a-z]+/i;

Here i is used for ignore a case. It will match any group of character may
be lower or upper or mixed case.

Regards,
Ramkumar
Software - Digital Services Division,
Macmillan India Ltd.- Chennai 600 018.
 
-----Original Message-----
From: Manasi Bopardikar [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2008 1:54 PM
To: beginners@perl.org
Subject: Handling ignore case and single line in pattern matchin

Hi,

  Does anyone know how to handle ignore case(i) and single line(s) on a
regular expression.

 

Thanks  and Regards,

Manasi Bopardikar|s/w Engineer|Persistent SystemsLtd

(+91)(020)(30234497)|9767218759

[EMAIL PROTECTED]

 


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute
or use this message. If you have received this communication in error,
please notify the sender and delete all copies of this message. Persistent
Systems Ltd. does not accept any liability for virus infected mails.



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


Reply via email to