On Thu, 04 Jan 2001 18:48:49 +0530 "Adityan Murthy" <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. > $str = " Hello World"; my($noleadingspaces) = $str =~ m/\s*(.*)/; Deepak Joglekar joglekar@xxxxxxx