Link to home
Start Free TrialLog in
Avatar of ReneGe
ReneGeFlag for Canada

asked on

Batch File: Regular Expression

Hi there,

I need to learn more about "Regular Expressions" in a batch file.

Here is an example from "Qlemo".

QUESTION:
Please provide URL of any educational material that will teach me on using "regular expressions" in a batch file, or any quick fix for my knowledge bug.

Thanks for your help,
Rene

 
for /F %%C in ('help ^| findstr /B "[A-Z]" ^| findstr /V "For HELP" ') do ^
help %C | find /i "%~1" >nul && (
   echo,
   echo -------- %C --------
   help %C
   echo,
   pause
)

Open in new window

Avatar of Bill Prew
Bill Prew

SOLUTION
Avatar of kleirose
kleirose
Flag of Indonesia 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 ReneGe

ASKER

Thanks bp!

I feel like a blond here (no offence to these lively people).

If I dont have examples, I'm a dom dom case.

Do you know of any web site with examples that would cover most possibilities?

Thanks and cheers,
Rene
Avatar of ReneGe

ASKER

@kleirose:

Nice!!

These regerated regular expressions will work with DOS FINDSTR?
Hi,

Here is a site which has tips related to Dos....
http://www.dostips.com/

Do let me know if it works for you.
SOLUTION
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
ASKER CERTIFIED SOLUTION
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 ReneGe

ASKER

I have enuf info to move on here.

Thanks a trillion for helping.

Cheers,
Rene