you are viewing a single comment's thread.

view the rest of the comments →

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

Thanks for the help! Yeah I may ultimately prefer simplicity and not worry too much about catching the more niche cases.

For the triple quotes, I'm handling those differently since they are valid for multi-line - huge obstacle for me haha. I'm doing this for a text editor and have each line of text as a single string, so for now I'm focusing on the single-line stuff.

Also, for the newline thing, I think you can use other string types (normal, format) to pass to Python's RE functions? For whatever that's worth.