1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2017
    Rep Power

    Searching for all occurrences from a CRLF to a :


    I would appreciate some help with a simple expression.
    Here is a sample piece of text I want to search through.

    Line one.
    Line two: continued on.
    Line three.

    Line four: and now we continue.
    Line five.

    I want to find everything from the start of a line to a : The expression should select. Line two: Line four:
    Can someone please help me build this? I currently have ^[^:]+: but this is not working as it is finding everything up to and including the first :.
    Thanks for any help!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Rep Power
    I suggest you have this thread moved to the regexp forum.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.

IMN logo majestic logo threadwatch logo seochat tools logo