Regular Expression syntax in Windows Grep -
how can search in windows grep regular expressions? example, have file has following -
example file contents (c:\test\somefile.txt)
void somereallyimportantfunction(void) { //do important stuff here return; }
expected windows grep search ability
*somereallyimportantfunction(*)*{
here's get
question
what error in regular expression here sees, invalid use of repeat?
i have spent long debugging, give in! thoughts?
i basing answer here : http://www.wingrep.com/help/html/search-regexp.htm
the asterisk character reporesents 0 or more instances of preceding character. seems using pure wildcard. believe error first asterisk trying repeat nothing. past error wont result want. try '.*' '.*' 0 or more of characters. depending on how granular want check [a-za-z]* or similar.
Comments
Post a Comment