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 '---'