I have a very old source (2008) that use a dump of pcre. It was working but now with Delphi 10.3 it doesn't. I would like to to it with system.RegularExpressions but i dont know how to do ?
I want to parse a HTML file to extract array, select array and loop on rows to find one particular an select in this row a particular col.
the old code is :
table := RegexMatchedExpression(page, '<table.*?>.*?</table>', 3);
rows := TStringList.create;
RegexAllMatchedSubExpression(rows, table, '<tr.*?>(.*?)</tr>');
for r:= 0 to rows.count-1 do begin
cols := TStringlist.create;
RegexAllMatchedSubExpression(cols, rows[r], '<td.*?>(.*?)</td>');
for c := 1 to cols.count-1 do begin
if r=0 then begin
Cequejeveux[c-1] := cols[c];
Perhaps it will be more 'light' to find the row directly. Its strat by
<tr class="odd">
Can you help me please because i can't find a system.regularexpression tutorial