That is more efficient, because you only match the whitespace, not the whole string. And as to your question, of course dot star is okay, you just have to know when it is okay, that is the tricky part for people just learning regexes.s/^\s*//; s/\s*$//;
The 15 year old, freshman programmer,
Stephen Rawls
In reply to Re: Dot star okay, or not?
by srawls
in thread Dot star okay, or not?
by Cirollo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |