Content regex question

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
PeterPanino
Posts: 78
Joined: Sun Feb 21, 2016 10:26 pm

Content regex question

Post by PeterPanino »

Hello!

I am trying to create a content regex which can find files containing ANY of these two lines:

Image

Both of these expressions do work on their own:

Code: Select all

content:"procedure LoadFrom"

Code: Select all

content:"function LoadFrom"
However, this expression does not work:

Code: Select all

content:"procedure|function.+LoadFrom"
Why not? Which expression can find any of the above lines?
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Content regex question

Post by therube »

I suspected "regex:" needed to be in there somewhere, & "Running" through the Advanced Search GUI, with Name "ncmain.exe" & your regex: gave:

> ncmain.exeregex:"procedure|function.+LoadFrom"

(which does look odd to me, no space ?) so maybe you need to finagle regex: into your content: search, like (& I don't know if its right, but):

> content:regex:"procedure|function.+LoadFrom"
PeterPanino
Posts: 78
Joined: Sun Feb 21, 2016 10:26 pm

Re: Content regex question

Post by PeterPanino »

therube wrote:I suspected "regex:" needed to be in there somewhere, & "Running" through the Advanced Search GUI, with Name "ncmain.exe" & your regex: gave:

> ncmain.exeregex:"procedure|function.+LoadFrom"

(which does look odd to me, no space ?) so maybe you need to finagle regex: into your content: search, like (& I don't know if its right, but):

> content:regex:"procedure|function.+LoadFrom"
Thanks, but unfortunately this does not work.
Post Reply