Link to home
Start Free TrialLog in
Avatar of robrodp
robrodpFlag for Mexico

asked on

Regular expressions Exclude patter

I have a text .  I want to extract all phrases delimited by ? No problem

^?]+

But I need to exclude phrases with a certan word (f ex  monkey)

Example:

Central 543312,yrttt ?My firend? 23322 ?is a monkey?  ?I am happpy?

Extract my friend and I am happy

Do not extract is a monkey

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of Kim Ryan
Kim Ryan
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of robrodp

ASKER

Thx
Avatar of robrodp

ASKER

I had thought about that

However I was hoping there was a better solution

Thx