Donate Share

Colorer Library

Subscribe

need help with \M \m regex tags

You are viewing a single message from this topic. View all messages.

  1. 2009-09-20 16:49:27 UTC

    /One\mTwo/ would match "OneTwoThreeFour", but only color Two, and One can't be colored before.

    <regexp match="/(?:^|\s)\mREM.*$/i" region="Comment" />
    

    This is from my code, it uses \m to make sure there is a whitespace or newline right before the comment, but is not colored as a comment.

    Hope this helps a some more :)

    jonib

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.