tenants
Well-known member
I'm trying to grab this block:
using this reg ex:
I can't spot what I'm doing wrong yet, any pointers ... I don't think its because I'm using greedy *, since this would at least pick up one match, its not the lay out ( I lay it out as a single line, not like above, I've just laid it out like this for clarity). It's been a while since I looked at regex, it's always been one of those things that take me a while to get back into
Once I've got this working, I still need to figure out how I'm going to avoid the core honeypots, but 1st things 1st
this also didnt work
neither did this
Code:
<dl class="ctrlUnit">
<dt><label for="ctrl_{$fieldMap.email}">{xen:phrase email}:</label></dt>
<dd>
<input type="email" name="{$fieldMap.email}" value="{$fields.email}" />
</dd>
</dl>
using this reg ex:
Code:
#<dl[^>]*>
[^<]*<dt[^>]*>[^/dt>]*/dt>
[^<]*<dd[^>]*>
[^<]*<input type="email"(.*?)</dl>#siu
I can't spot what I'm doing wrong yet, any pointers ... I don't think its because I'm using greedy *, since this would at least pick up one match, its not the lay out ( I lay it out as a single line, not like above, I've just laid it out like this for clarity). It's been a while since I looked at regex, it's always been one of those things that take me a while to get back into
Once I've got this working, I still need to figure out how I'm going to avoid the core honeypots, but 1st things 1st
this also didnt work
Code:
#<dl[^>]*>
[^<]*<dt[^>]*>[^[/dt>]]*/dt>
[^<]*<dd[^>]*>
[^<]*<input type="email"(.*?)</dl>#siu
neither did this
Code:
#<dl[^>]*>
[^<]*<dt[^>]*>[^(/dt>)]*/dt>
[^<]*<dd[^>]*>
[^<]*<input type="email"(.*?)</dl>#siu
Last edited: