Search found 2 matches

by bill b.
22 Nov 2010 08:53
Forum: DOS Batch Forum
Topic: How to find a string but not as a substring
Replies: 5
Views: 6728

Re: How to find a string but not as a substring

Thank you both! !k, I tried your approach, but it didin't work. I added test cases to my file, and the syntax you describe couldn't find any strings, let alone substrings. If I put the word "project" in an html file finstr "\<project\>" couldn't find it. I'm running DOS on Winser...
by bill b.
19 Nov 2010 11:31
Forum: DOS Batch Forum
Topic: How to find a string but not as a substring
Replies: 5
Views: 6728

How to find a string but not as a substring

Hi, I need to find a string that 's standalone -- i.e., not embedded in another string. For example, I'd like to find "project" but not find "projectile" Is there a way to do this? With findstr, I tried "/<project/>" but that returned no hits. thanks for helping! bill