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

enter image description here

enter image description here

enter image description here

enter image description here

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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -