in reply to Re^6: Regex problem - (non)greedy?
in thread Regex problem - (non)greedy?

But he says the 'EF' would be a random text, so it could be 'cd' as well?

And what about 'cd accd ghi'?

Replies are listed 'Best First'.
Re^8: Regex problem - (non)greedy?
by ikegami (Patriarch) on Nov 14, 2013 at 15:08 UTC

    But he says the 'EF' would be a random text, so it could be 'cd' as well?

    That makes no sense. cd is part of his pattern.

    And what about 'cd accd ghi'?

    Not sure, though it's just a question of using or not using \b.