Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Searching HTML code

0 views
Skip to first unread message

TedMi

unread,
Nov 28, 2009, 10:24:41 AM11/28/09
to
Although this is not strictly about EW, it does relate to files created by
it. Namely, how to search for files based on the HTML code within them?
Window's search function (both XP and Vista) searches only thru content, not
code. Are there any utilities that do this?

Thanks,
-TedMi


Christoph Schneegans

unread,
Nov 28, 2009, 12:00:30 PM11/28/09
to
"TedMi" wrote:

> Namely, how to search for files based on the HTML code within them?

I prefer the FINDSTR command. For example, type

findstr /silc:"<meta" *.aspx

in a console window to search all .aspx files in the current directory
and all subdirectories. For more examples, see
<http://technet.microsoft.com/en-us/library/cc732459(WS.10).aspx#BKMK_examples>.
--
<http://schneegans.de/sv/> � XML Schema Validator

TedMi

unread,
Nov 28, 2009, 12:25:55 PM11/28/09
to
Yes, of course! After years of GUI dialog boxes, one tends to forget about
command-line utlilities.
Thanks,
-TedMi

"Christoph Schneegans" <Chri...@Schneegans.de> wrote in message
news:7nd39cF...@mid.individual.net...

> <http://schneegans.de/sv/> � XML Schema Validator
>


MikeR

unread,
Nov 29, 2009, 5:22:03 AM11/29/09
to

I can't speak for Vista, but Windows Explorer in XP has no problem finding stuff in
HTML documents. Did you use the "All or part of the file name" or the "A word or
phrase in the file" box?

Mike

Gregory A. Beamer

unread,
Nov 30, 2009, 10:48:07 AM11/30/09
to
"Christoph Schneegans" <Chri...@Schneegans.de> wrote in
news:7nd39cF...@mid.individual.net:

> "TedMi" wrote:
>
>> Namely, how to search for files based on the HTML code within them?
>
> I prefer the FINDSTR command. For example, type
>
> findstr /silc:"<meta" *.aspx
>
> in a console window to search all .aspx files in the current directory
> and all subdirectories. For more examples, see
> <http://technet.microsoft.com/en-us/library/cc732459(WS.10).aspx#BKMK_e
> xamples>.

WinGrep is also a nice utility to have in your toolbox:
http://www.wingrep.com/

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************

TedMi

unread,
Dec 3, 2009, 8:27:32 AM12/3/09
to
As I said in my original post, Windows Explorer (both XP and Vista) can only
find strings in the CONTENT of HTML pages. For example, searching for "<meta
name" (without the quotes) finds no files, even tho every one in that folder
contains that string.
-Ted

MikeR

unread,
Dec 4, 2009, 6:40:04 AM12/4/09
to

I don't understand then. To be found in a file, the string *HAS* to be *IN* the file.
The "stuff" *IN* a file is the *CONTENTS*.

So what's the answer to my question? There are two boxes to enter your search
criteria. One searches for file names, the other searches for stuff (contents) inside
the file. Which box did you enter "<meta name" into?

0 new messages