How to match IP address by using 'findstr'? Or any other method of batch in windows
问题 As the title said, I want to match ip address with batch in windows, please tell me how I can do it? I see that " findstr " can match with regex like " [0-9] ", but how can "findstr" matches it appears one to three times ? 回答1: Since findstr 's regex support is a bit ... dated, you usually can't use most regexes you find on the web. The following matches four runs of digits, separated by dots: ipconfig | findstr /r "[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*" However, if you're only