[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

RE: Perl expression

$string =~ s/^  *// # Two spaces after ^.

Prashant TR

On Thursday, January 04, 2001 6:49 PM, Adityan Murthy
[SMTP:ad_it@xxxxxxxxxxx] wrote:
| Hi all,
| Could someone tell me a regular expression to remove leading spaces
| in a 
| string?  For example in "       Hello World", i want to remove all
| the 
| spaces *before* hello.
| Thanks in advance.

The information transmitted is intended only for the person
or entity to which it is addressed and may contain confidential 
and/or privileged material. Any review, retransmission, 
dissemination or other use of, or taking of any action in reliance 
upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from any