May-27-2020, 09:37 AM
Hello together,
Im parsing a set of files which I iterative open and read line by line. Now I want to check each line for the occurrence of two strings. Either the one string or the other. If this match it will be replaced, or something else, doesn't matter. The question is, how can I write a regex expression which parse for two different strings at a time, and it should be greedy.
Thanks in advance
/chris
Im parsing a set of files which I iterative open and read line by line. Now I want to check each line for the occurrence of two strings. Either the one string or the other. If this match it will be replaced, or something else, doesn't matter. The question is, how can I write a regex expression which parse for two different strings at a time, and it should be greedy.
Thanks in advance
/chris