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

    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    Writting a Regex


    Hi,

    I have a very long text where I would like words with more than 3 caracthers to be selected. These word should be between the word "michel" and "jacques", "marc" and "jean" should not be among selected words.

    See what I am trying to do

    (?i)(?:\bmichel\b\\W(\w{3,}++\s?)\bjacques?\b|\bjacques?\b.*\bmichel?\b).

    Help please.


    Mutkas
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2012
    Posts
    776
    Rep Power
    495
    I would use a parser rather than regexes for this.

    Or several regexes one after the other in successive code lines.

IMN logo majestic logo threadwatch logo seochat tools logo