开发者

Regex for String Parameter!

I am trying to implement a Url Rewriting and struggling to figure out pattern matchi开发者_StackOverflow社区ng for

SC%3aArgument1+Argument2+%26+Argument3+Argument4.

Any help is great!!


I'm guessing you want argument1, 2, 3, and 4?

Does SC%3a(.*?)\+(.*?)\+%26\+(.*?)\+(.*?)\. work?

Btw, that input is URL Encoded for "SC:Argument1 Argument2 & Argument3 Argument4."


regex in VI:

SC:\([^+]*\)+\([^+]*\)+&+\([^+]*\)+\([^.]*\).

However you should adapt it for you context - C++, perl etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜