Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: capture optional text

by Lotus1 (Curate)
on May 18, 2017 at 14:40 UTC ( #1190538=note: print w/replies, xml ) Need Help??

in reply to Re: capture optional text
in thread capture optional text

I like the idea of the zero or more match, (.*), inside the capture to make it match even if the comment isn't there. Thanks.

Replies are listed 'Best First'.
Re^3: capture optional text
by KurtZ (Pilgrim) on May 18, 2017 at 16:23 UTC
    It will also match "malformed" comments without a leading #.

      I read it that the #'s are optional, so it's not really "malformed", although no test case for this was provided :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1190538]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2017-10-20 18:49 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (266 votes). Check out past polls.