2 messages in com.googlegroups.google-code-searchRe: searching code using regular expr...
FromSent OnAttachments
Vladimir Ghetau10 Sep 2007 20:02 
Vladimir Ghetau10 Sep 2007 20:08 
Subject:Re: searching code using regular expressions
From:Vladimir Ghetau (vlad@pixeltomorrow.com)
Date:09/10/2007 08:08:01 PM
List:com.googlegroups.google-code-search

OH,

I just noticed what was wrong, the name of my file was admin-db.php not admin_db.php, and now the query works, geesh:

http://www.google.com/codesearch?hl=en&lr=&q=lang%3Aphp+%28include%7Crequire%29%28_once%29%3F%28%5Cs%2B%29%3F%5C%28%3F%28%5Cs%2B%29%3F%5B%5C%27%7C%5C%22%5Dadmin-db%5C.php%5B%5C%27%7C%5C%22%5D%28%5Cs%2B%29%3F%5C%29&btnG=Search&aq=t

Regards,

Hi guys,

I haven't had time to browse all the help files, but I'm trying to find stuff using regex, and it seems some searches don't return any results, maybe because of the regular expresion which is too long?

Here's an example of search I'm trying:

lang:php (include|require)(_once)?(\s+)?\(?(\s+)?[\'| \"]admin_db.php[\'|\"](\s+)?\)

This would normally show as a result all combinations inside files, such as:

require_once ( 'admin_db.php' ) require('admin_db.php' ) include ( 'admin_db.php' ) etc....

Any idea on this issue?

Thanks,

Vladimir Ghetau

Of course I can refine my search for admin_db.php or whatever more simple, but I'm trying to make a notice.

The search would normally reveal Wordpress source code from the wordpress repository or some archive stored online.