Q:

How to translate a pcre (php) regex pattern in bash?

I have the following regex pattern that is working nicely in php
/(^((?!thumb).)*\.jpg)/

My task is to translate this regex in bash, the ideea is to find all the .jpg files from a directory (recursively) that do not contains the thumb word in the file path.
I use a structure like this:
find /folder/path -regex '(^((?!thumb).)*\.jpg)'
But i have zero results ? Is there something wrong with my regex in bash?

A:

find . -iname '*.jpg' -not -iname "*thumb*"

