【问题标题】:What the regex pattern (in c#) I must use for this? [closed]我必须为此使用什么正则表达式模式(在 c# 中)? [关闭]
【发布时间】:2012-08-06 07:19:26
【问题描述】:

我有一个这样的网址:

http://www.localhostserver.com/appserver/key=***b0U%2fPzc%2fPzsPy***/photo.jpg

我想要key=/photo.jpg 之间的字符串

谢谢

【问题讨论】:

  • 如果您自己对正则表达式进行一些研究,那将非常容易。

标签: c# regex


【解决方案1】:

试试这个:

key=(.*?)/photo.jpg

【讨论】:

    猜你喜欢
    • 2010-09-15
    • 1970-01-01
    • 2010-10-20
    • 2013-06-02
    • 2014-12-13
    • 1970-01-01
    • 2013-08-20
    • 1970-01-01
    • 2016-09-28
    相关资源
    最近更新 更多