Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Why wouldnt this work
I need to get only the last 41 chars of the var $buffer into $last_41($last_41) = $buffer =~ /(.*{41})$/;
Edited by Arunbear: Changed title from 'Why doesnt this work', as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex to match last n characters of a string
by BrowserUk (Patriarch) on May 13, 2005 at 06:18 UTC | |
|
Re: Regex to match last n characters of a string
by Zaxo (Archbishop) on May 13, 2005 at 06:21 UTC | |
|
Re: Regex to match last n characters of a string
by gopalr (Priest) on May 13, 2005 at 06:25 UTC | |
|
Re: Regex to match last n characters of a string
by displeaser (Hermit) on May 13, 2005 at 06:34 UTC | |
|
Re: Regex to match last n characters of a string
by displeaser (Hermit) on May 13, 2005 at 07:06 UTC |