How To Trim Whitespace Using Perl
erics, Posted August 3rd, 2011 at 7:23:06pm
1 2 |
$string =~ s/^\s+//; # Left Trim $string =~ s/\s+$//; # Right Trim |
1 2 |
$string =~ s/^\s+//; # Left Trim $string =~ s/\s+$//; # Right Trim |
Categories: How-To's, Technology Tags: howto, ltrim, perl, rtrim, tips, trim, white space, Whitespace
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Copyright © 2005-2024 Eric Michael Stone | Random Thoughts, Whims and Fancies…. Powered by WordPress
Leave Your Comment
All fields marked with "*" are required.