Python regex needed for format: 'delete([any text here])'
Python regex needed for format: 'delete([any text here])' I am a total regex beginner. I want to create a regular expression that strictly allows the word delete followed by two closed parenthesis that contain any kind of characters (http://www.waynesworld1.com) . delete (http://www.waynesworld1.com) If I put it all together, it should accept the following: delete(http://www.waynesworld123.com) . delete(http://www.waynesworld123.com) Let me emphasize that the regex should strictly accept delete() and shouldn't accept elete() . As long as the user types in delete() anything is acceptable within the parenthesis ( example: this would be fine delete(12!@Ww) delete() elete() delete() delete(12!@Ww) How can I craft this regex in Python? So far all I have is /delete/ for my regex. /delete/ Why the downvote? This is a perfectly reasonable question that is well constructed and very understandable. I have done previous research and haven't found a...