CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [Laurent_R] A small regexp question...: Edit Log



yanivr78
Novice

Apr 9, 2013, 2:09 PM


Views: 875
Re: [Laurent_R] A small regexp question...

Hmmm....Strange,

$g =~ s/^\s+|\t|\s+$//g;
works for me , this is the output :
White Space at the end and beginning this is a new line

btw, I tried to use your examples, the only one that almost worked was :
$g =~ s/\s+/ /g;
which has 1 bug...there's a space in the beginning of the actual output :
White Space at the end and beginning this is a new line


(This post was edited by yanivr78 on Apr 9, 2013, 2:10 PM)


Edit Log:
Post edited by yanivr78 (Novice) on Apr 9, 2013, 2:10 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives