The expression is intented to trim the spaces off the front and back of a string. Example: " Andrew Mitchell" would be trimmed to "Andrew Mitchell"
Thats not happening. Here is the code, Any advise?
($BKCUM_CNUM[$i]) = substr ($line, 0, 7) =~ m/^\s*(.*)\s*$/;
In reply to Regular Expression and trimming by akm2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |