--- Erhalten von ZBM.ZAGTA 089/32000-414 27-09-01 15.11 Thanks for the answers
Regards, roberta -------------------------------------------------------------------------- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Thu, 27 Sep 2001 08:46:05 -0400 Subject: Re: Delete the first char of a string with one pattern matching On Sep 27, GRANATA ROBERTA said: >With a regular expression i want to delete the first char of this string. >Can sombody help me to write it? Why do you need a regex? It's really not the tool for the task... $str =~ s/.//s; # removes the first character I'd suggest using substr(), though: substr($str, 0, 1, ''); # replace the first character with nothing -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** ---- 27-09-01 15.11 ---- Gesendet an ----------------------------------- -> jeffp(A)crusoe.net -> beginners(A)perl.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
