I cant make this code work with the regex *... it appears that * isnt a regex for anything before page.. the txt file.pagdel contains random directory locations for the page and the page number like
H:\teste\pages\page_10
H:\teste\blankpages\page_11
i need to replace all directory structure in the bat file for an specific directory stored in a string variable called replace
example
H:\teste\pages\page_10 -- old pagdel
H:\teste\blankpages\page_11 -- old pagdel
H:\teste\newpages\page_10 -- new pagdel
H:\teste\newpages\page_11 -- new pagdel
File.WriteAllText("H:\\teste\\batch\\pagdel.bat",
Regex.Replace(File.ReadAllText("H:\\teste\\batch\\pagdel.bat"),
"*page_", replace));
What im doing wrong.