Am I correct in assuming that repl.bat will not work if I'm trying to do a search & replace for a pattern that can be 3-4 lines long?
Whenever I try to use a '/s', '/n', or anything to continue the pattern search onto the next line, it fails to find any pattern at all.
e.g. SEARCHING FOR THE FOLLOWING PATTERN
for i in range(60):
try:
if self.is_element_present(By.CSS_SELECTOR, "div[id=Navigation] ul[id=mainNav] a[href='/DataValues/']"): break
except: pass
time.sleep(1)
else: self.fail("time out")
So when I try: type file.py | repl "\sfor i in range\(60\)\:" "cookie" file.py.new
...to represent the first line, it will find the first line successfully.
However if I add a '\n' or '\s' to continue searching for the pattern past the first line:
** type file.py | repl "\sfor i in range\(60\)\:\stry" "cookie" file.py.new **
...it fails to find anything and no changes are made. I've tried different combinations of \n and \s & the results are always the same. Thanks ahead of time for your help!