Facing issue in split

i want the data between dp/ to /ref. how can i do this?
ex-/Typhoo-Green-Lemon-Grass-Bags/dp/B00JDAE3J2/ref=sr_1_36?dchild=1&keywords=honey+lemon+tea&qid=1591095321&sr=8-36
my desire result wold be-B00JDAE3J2

If MyText contains the text you’ve shown above, you can get the data by assigning a string to System.Text.RegularExpressions.Regex.Match(MyText, "(?<=dp\/).*(?=\/ref)").Value.

1 Like

thank you…

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.