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 ** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
