Using regex to extract from data extracted from http request

hi,

so using http request i scraped out the data from site but now i m stuck while trying to extract the specific data from whole using regexs

<b>Birthname<\/b><\/td>\s*<td>([^<]+) and
<b>born on<\/b><\/td>\s*<td>(\d{1,2} \w+ \d{4} at \d{1,2}:\d{2}) and
<b>Place<\/b><\/td>\s*<td>([^<]+),\s*<small>([^<]+)<\/small>
can anyone plz guide on how to go about this…thank u in advance

Hi,

Use this regex to extract the data:

<b>Birthname<\/b><\/td>\s*<td>([^<]+)<\/td>\s*<b>born on<\/b><\/td>\s*<td>(\d{1,2} \w+ \d{4} at \d{1,2}:\d{2})<\/td>\s*<b>Place<\/b><\/td>\s*<td>([^<]+),\s*<small>([^<]+)<\/small>

This will capture:

  1. Birthname
  2. Date and time born
  3. Place and country
3 Likes

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