Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Search text file contents for special character

24 Jul 2012   #1

Windows 7 32bit
 
 
Search text file contents for special character

Hey,

I'm trying to search the contents of some text files. The string I am searching for is SAP*. As you can probably guess when I type * I get everything that starts with the word SAP.

I tried using ~"SAP*", ~SAP"(*)" etc. but it continues to show me everything that starts with SAP. I can't use ~"*" because there are other entries that contain an *.

Any ideas?

Cheers,

Loader


My System SpecsSystem Spec
.

24 Jul 2012   #2

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

Hi,

The results depend on which text editor you are using. This is what I get when I use FREE NotePad++

Search text file contents for special character-.png

Regards,
Golden


My System SpecsSystem Spec
24 Jul 2012   #3

Windows 7 32bit
 
 

Hi,

Thanks, but this is not what I am after.

I am trying to search multiple .txt files using the Windows search feature. On XP you could just type SAP[*], but this doesn't work anymore.

EDIT: The text I want to search for is "SAP*", I don't want to return SAP1,SAP2 etc.. Only SAP*.
My System SpecsSystem Spec
.


24 Jul 2012   #4

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

Quote   Quote: Originally Posted by Loader View Post
using the Windows search feature
Oh.....I missed that part.

You mean like this right?
Search text file contents for special character-b.png


My System SpecsSystem Spec
24 Jul 2012   #5

Windows 7 32bit
 
 

Hi,

No - I want to search the contents of multiple text files for text that includes *.

The following results are not correct:

SAP1
SAPabc
SAP23

The following result is correct:

SAP*

Something like: Search - Content:~"SAP(*)"
My System SpecsSystem Spec
24 Jul 2012   #6

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

How about this?
Search text file contents for special character-c.png


My System SpecsSystem Spec
24 Jul 2012   #7

Windows 7 32bit
 
 

Hi,

But this will only search one text file, correct?

I have over 100 to search the contents of, this is why I am using the Windows Search feature.
My System SpecsSystem Spec
24 Jul 2012   #8

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

No, it can open multiple text files.....for the number you want to search, I recommend UltraEdit (but its not free).

As far as I know, no Windows search function has the ability to scan within text files for specific strings, as in this case.
My System SpecsSystem Spec
24 Jul 2012   #9

Win 7 Pro x64 SP1, Win 7 Ult x86 SP1
 
 

You might try using File Locator Lite (free).
You can search for SAP* in the file contents, and the * is not used as a wildcard character.

FileLocator Lite - Free File Searching Utility
My System SpecsSystem Spec
24 Jul 2012   #10

Windows 7 32bit
 
 

Excellent, this did the trick. Thank you very much David.
My System SpecsSystem Spec
Reply

 Search text file contents for special character




Thread Tools



Similar help and support threads for2: Search text file contents for special character
Thread Forum
Search doesn't work for numbers in contents of a file General Discussion
I don't want to search file contents General Discussion
search results doesn't show file contents found and not highlighted General Discussion
Windows file contents to text file General Discussion
search file contents getting worse General Discussion
How to search inside file contents on removable device? General Discussion
I give up.. Search file CONTENTS? General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:40 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33