0

Hi I need a Simple Regular expression in PCRE format to match something like

(Child OR Children) AND toys
Sergiu Dumitriu
  • 11,455
  • 3
  • 39
  • 62
Michael M
  • 1
  • 1

2 Answers2

3

The following, or a slight derivative of the following, should work for you:

/(?:child|children) toys/i
1

Question is not very clear about how word toys will appear after OR condition, but I think following should work for you:

/(?:^|\b)child(?:ren|)\b.*?(?<=\btoys\b)/i
anubhava
  • 761,203
  • 64
  • 569
  • 643