Non caputre group on regex

Hi
Is it possible to use non caputre group on regex query for ex.
(?:somestring)(stringtofind)(?:someotherstring)
I get errors trying expressions like this.
Thanks