So I figured out that I need to use an Or statement..
Search:
['<TD>'crlf capture(1+chars)'crlf'][1+chars][('email:' capture(1+chars)crlf)or('</TD>')]
Replace:
$1, $2, etc
This works great, and leaves the output for $2 blank if no email address is found, and restarts the search if it hits the ...
Search found 2 matches
- Thu Jul 29, 2010 12:17 pm
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Use of Not for more than 1 character.
- Replies: 2
- Views: 3581
- Wed Jul 28, 2010 4:17 pm
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Use of Not for more than 1 character.
- Replies: 2
- Views: 3581
Use of Not for more than 1 character.
I am data mining from HTML, but running into some problems as the data fields for each record are not always the same.
Here's a simplified extract of the source: (assume each line has a crlf)
<td>
Name: joe bloggs
email: joe@bloggs.com
website: www-joeblogs-com
</td>
<td>
Name: Paul Smith
website ...
Here's a simplified extract of the source: (assume each line has a crlf)
<td>
Name: joe bloggs
email: joe@bloggs.com
website: www-joeblogs-com
</td>
<td>
Name: Paul Smith
website ...