Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Dot star okay, or not?

by srawls (Friar)
on Jul 05, 2001 at 20:11 UTC ( #94148=note: print w/replies, xml ) Need Help??

in reply to Dot star okay, or not?

s/^\s*//; s/\s*$//;
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.

The 15 year old, freshman programmer,
Stephen Rawls

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://94148]
[makita]: I am inspecting it second day :)
[makita]: Thanks
[Discipulus]: better to ask a full SOPW
erix self-flagellates with the cluebat
[erix]: indeed had to be( time make check-world ) > test_run2.output 2>&1
[erix]: probably misremembered because of 2>&1 |

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-03-23 08:51 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.