Match words with a specific letter and not another letter

25 Views Asked by At

I have a couple of strings and want only words with letter o and not word with letter u.

For example:

  • hello
  • our
  • hey
  • owner
  • udnwedfo

So it should work on the word hello and owner.

I have tried something like

([^u])?([o])?([^u])

But so far it did'nt work.

0

There are 0 best solutions below