This is a super simple regular expressions test to see if I could safely indentify text as either:
a calendar event
an email address
a phone number
Once I have indentified it, I can then act upon it. I wrote this up in Python and Regex so I can make a little clipboard monitoring script on my iPhone. For example, if I have an address in my clipboard, I probably want directions on how to get there. If I have something with a date or time, I probably need to schedule it in my calendar. I’m still working on that part, but I feel like this is a handy starting point.