in reply to help with REGEXP to remove carriage return and caret from end
My only other advice is to concentrate on what you are keeping when you use a match and on what you are replacing when you use a replace (that is when using s///).if ( $user =~ /(.*)\^/ ) { my $user_name = $1; }
Phil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help with REGEXP to remove carriage return and caret from end
by Bennco99 (Acolyte) on Jul 25, 2006 at 17:10 UTC | |
by Bennco99 (Acolyte) on Jul 25, 2006 at 17:22 UTC | |
by Bennco99 (Acolyte) on Jul 25, 2006 at 19:04 UTC | |
by Bennco99 (Acolyte) on Jul 25, 2006 at 17:12 UTC | |
by Joost (Canon) on Jul 25, 2006 at 17:15 UTC | |
by GrandFather (Saint) on Jul 25, 2006 at 22:12 UTC |