c# - Match string like ?$skip=[0-9] -
i want match odata string ^\$skip=[0-9]$
match things $skip=3
, remove them. regex wrong don't know try next. i've tried various things wrapping in []
, on.
here online example: http://www.regexr.com/392m2
you using ^\$skip=[0-9]$
. regex match line has pattern. line must start , finish $skip=n
so, that's why test didn't work.
if have $skip=3 separated words can use:
\b\$skip=\d+\b
above match if have: blabla blab bla $skip=3 bla
if want remove it's appearing can use \$skip=\d+
\$skip=\d+
above match if have: blabla blab bla$skip=3bla
Comments
Post a Comment