It often happens that after designing my regexp (on regex101.com) I want to paste it in my program. Consider this regexp that matches numbers and string (but keep in mind this is general question!):
\"(?:[^ \"]| \\\")* \"| \-?[0-9]+(?: \.[0-9]+)?)$
I overlined all characters that need to be escaped before pasting them into languages that use
" for strings.
How can I deal with this efficiently?