Link to home
Start Free TrialLog in
Avatar of YZlat
YZlatFlag for United States of America

asked on

ASP equivalent to Windows findstr

I need to implement findsre using ASP and/or AJAX. Can anyone help by pointing me in the right direction? Is there an equivalent?
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kimputer
Kimputer

What exactly do you want to find? If a file has the string? The exact line number?
For now, I think your code should open the file as a streamreader, do a readall, then an Instr
But how would it work?
You mean only for a single given string or also across multiple files?

If you want to go "fancy" by supporting multiple patterns and such, Regular Expressions is the only true way.