I’m getting a string value back from an external application that is supposed to be providing an email address. However, this string value sometimes is providing a display name that goes along with the email address. I only need the email address, which is inside the <brackets>, so I think I need to do some sort of sub-string or SELECT clause, inside of my INSERT statement.
Here is what my INSERT statement looks like, along with the test data:
INSERT INTO tblInquiry
(fldInquiryFromEmail)
VALUES ('"\'Tim Lastname\'" <timm@testCCaddcompany.com>')
I agree with @eggyal’s comment. But if you must, here’s how:
Note that this still works even if you pass in a real email (without angle brackets)