hankknight
asked on
ASP.NET / VB / REGEX: Automatically create email links ignoring characters at end
I use the following code to make email addresses links.
The problem is that periods and commas and single quotes and double quotes mess things up.
input = RegularExpressions.Regex.Replace(input, "(\S+\@\S+\.\S+)", "<a href=""mailto:$1"">$1</a>")
The problem is that periods and commas and single quotes and double quotes mess things up.
ASKER
kaufmed, that fixes this:
xyz@example.com.
and this:
xyz@example.com"
But not this:
"xyz@example.com"
Could you make it work for both the beginning and the end?
Thanks.
xyz@example.com.
and this:
xyz@example.com"
But not this:
"xyz@example.com"
Could you make it work for both the beginning and the end?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have asked a related question here:
https://www.experts-exchange.com/questions/27684976/ASP-NET-VB-REGEX-Automatically-create-email-links-allowing-for-multiple-dots.html
https://www.experts-exchange.com/questions/27684976/ASP-NET-VB-REGEX-Automatically-create-email-links-allowing-for-multiple-dots.html
Open in new window