Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Regex to ignore comment

by u65 (Chaplain)
on Oct 20, 2015 at 20:47 UTC ( #1145482=note: print w/replies, xml ) Need Help??


in reply to Regex to ignore comment

Depending on how much control you have over your data file formats, it might be easier to have a different comment indicator auch such as '---' or '///', or some other unique pattern which would not appear otherwise.

Replies are listed 'Best First'.
Re^2: Regex to ignore comment
by crusty_collins (Friar) on Oct 21, 2015 at 13:48 UTC
    Thanks for all the comments.

    I have decided to make the comment string something other than #.

    I like u65's suggestion to use '---'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2021-05-11 17:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (120 votes). Check out past polls.

    Notices?