开发者

Regex for String Parameter!

开发者 https://www.devze.com 2023-01-04 20:56 出处:网络
I am trying to implement a Url Rewriting and struggling to figure out pattern matchi开发者_StackOverflow社区ng for

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

精彩评论

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

关注公众号