I would like to search the value of a variable for a certain character (a period)
I tried findstr and jrepl, but all i got was errors (maybe I used the syntax wrong?). Could anyone help me?
Thanks,
BatNoob
How to find a character in a string
Moderator: DosItHelp
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: How to find a character in a string
Do you just want to know if the string contains that character, or do you need to know exactly where in the string it is? Those are two very, very different solutions.
Re: How to find a character in a string
i need to know if it is in the string
Re: How to find a character in a string
Code: Select all
IF NOT "%string:.=%"=="%string%" echo character found
Re: How to find a character in a string
thank you, that is just what I needed.