This is my string: href="/store/apps/details?id=SomeString&
.
How can I extract the SomeString with PerlRegEx? I'm using Delphi XE2.
This is my string: href="/store/apps/details?id=SomeString&
.
How can I extract the SomeString with PerlRegEx? I'm using Delphi XE2.
You can use the following:
href="/store/apps/details\?id=([^&"]*)
SomeString will be captured in group 1.
You can use the following regex
[?&]id=([^a]*)&?
http://rubular.com/r/6ivQNNBLxP
mind you depending on what is and is not an allowable input, just about any conceivable reg-ex can be tricked
You can use : .*id=\([^&]*\)&
Depending on the language you are using, you might find tools cleaner than regexps to perform this task.