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

Re: Perl expression



> $string =~ s/^  *// # Two spaces after ^.
you can even do it with one space aftter ^,
though doing  $string =~ s/^\s*// will be better!!!
> | 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.