UI enhancements and error handling in RegEx functionality