I am using Android Studio for programming. I have faced difficulties many times while copying regular expressions. Whenever I copy any regex and paste it, it removes the escape character every time and I have to manually type those escapes to make it a valid regex again. I tried to check intelliJ settings but did not get any option to turn off this feature.
This question did not answer my question fully but I realised that it is a problem in java itself.
Please guide me how to avoid this problem especially since the regex strings sometimes run into hundreds of characters and it becomes difficult to track all the changes.
Good answer from Mohan:
I had never tried this simple thing. Its called "Paste Simple". Hotkey: Ctrl+Alt+Shift+V. This solves my problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With