Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Pattern Match

by Ratazong (Monsignor)
on Jun 08, 2017 at 06:21 UTC ( #1192328=note: print w/replies, xml ) Need Help??

in reply to Pattern Match

Dear Nansh,

the main reason why the dotstar is considered evil: it often doesn't do what you want. In your example it would also match Fruits{ }{ }. You can see a detailed discussion in Ovids famous node Death to Dot Star!. Of course if you know exactly what you do, the dotstar is a powerful weapon.

Not using the dotstar typically forces you to think more on your expected content. In you case, you are expecting letters and (probably) blanks as separators. So you could simply look up the shortcodes for them, e.g. in the documentation.

HTH, Rata

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1192328]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-06-04 17:28 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (35 votes). Check out past polls.