I have a specified problem.
I have, for example: Hello little, hello red, sometime and now.
I need regexp what will be match only if the clause contains both hello and red.
I have complete a regexp ((hello|red).*){2}()* what will work only if in clause one word hello and one word red, but in my clause two words hello and regexp will work without word red, what wrong:(
I need regexp what will match only if cause contain word hello and word red and not depend of repeat one of them.
Please help.
Thx.
hellois indeed found twice, you did not requireredspecifically to be there, but eitherhelloorred.