[英]In need of an Regular expression. For stripping outlook HYPERLINK “urlname”
I've run into a little problem. 我遇到了一个小问题。 Im making an Outlook Add-in, where i can archive an email.
我正在制作一个Outlook加载项,可以在其中存档电子邮件。
When an email contains html/xhtml etc it converts hyperlinks into HYPERLINK "url". 当电子邮件包含html / xhtml等时,它将超链接转换为HYPERLINK“ url”。 Example:
例:
HYPERLINK "Company URL" 1 x Mexicano
HYPERLINK "Company URL" € 1,75
HYPERLINK "Company URL" 1 x Patat
HYPERLINK "Company URL" € 1,25
each line should be an clickable URL, but for some reason outlook doesnt give plain text but this instead... 每行应该是一个可点击的URL,但是由于某些原因,Outlook不会给出纯文本,而是显示为...
So i want to strip my string from: HYPERLINK "any characters here" 因此,我想从以下位置剥离我的字符串:HYPERLINK“此处有任何字符”
Can someone help me with this? 有人可以帮我弄这个吗?
You can use something like: 您可以使用类似:
Regex regex = new Regex ("HYPERLINK \"(.*?)\"");
This will match Company URL
in HYPERLINK "Company URL" 1 x Mexicano
, if that's what you were looking for. 如果您要查找的话,这将与
HYPERLINK "Company URL" 1 x Mexicano
中的Company URL
匹配。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.