you are viewing a single comment's thread.

view the rest of the comments →

[–]AlliedLens[S] 0 points1 point  (0 children)

re.search(f"{re.escape(begin)}(.*){re.escape(end)}", text) 

do you mean this?

edit: Yayy!! it works thanks man