Reputation: 6158
I have the string <option value=/digital/collections/newsouth62.html>1862</option> and I want to fetch only the 1862 from the above string using a regular expression.
<option value=/digital/collections/newsouth62.html>1862</option>
1862
Upvotes: 2
Views: 84
Reputation: 20394
pattern = "|<option.*?>(.*?)</option>|";