Why isn't it extracting the phone numbers?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Posts: 3
Joined: Sat May 22, 2010 1:43 pm

Why isn't it extracting the phone numbers?

Postby trpaquette » Sun May 23, 2010 1:18 am

I'm using the EasyPattern filter in textpipe pro and applying it to a .txt file that contains the html code from a Yellowpages.ca page. Within this document it contains as an example the following code:

<A class="phoneNumber" href="http://www.yellowpages.ca/search/si/1/hair+salon/Toronto%2C+ON#" alt="Call" title="Free Call. Click the phone number to be contacted via phone by the business." onclick="javascript: openWin(&#39;/amurl/2851529/00135600/hair%252Bsalon/Toronto%25252C%252BON?link=http%3A%2F%2Fypg.dlcworldwide.com%2Fclick2.php%2Fe07b8afd80ec439df3ed0e634daf910d%3Fc%3D1fcd1c2026aecf6840bc14f2599d811f%26t%3D14162602875%26dn%3DPrisma%2BHair%2BDesign%26e%3D1274496993%26o%3Dnoip%26y%3Dd%26m%3Dn&#39;, &#39;680&#39;, &#39;425&#39;);" rel="nofollow" name="&amp;lid=free_call&amp;lpos=in_listing_left" onmousedown="_hbSet(&#39;cv.c2&#39;,&#39;1294800_lpp|free_call_hair salon&#39;);_hbSet(&#39;cv.c3&#39;,&#39;00135600|107554&#39;);_hbSet(&#39;cv.c17&#39;,&#39;hair salon_Toronto ON|l_y&#39;);_hbSet(&#39;cv.c18&#39;,&#39;hair salon_Toronto ON|l_1&#39;);_hbSend();">

As a test I entered the following into the Find EasyPattern field and made sure Extract Matches was ticked:

[3 digits, punctuation, 3 digits, punctuation, 4 digits]

Nothing is being extracted into the output file that I have specified. Shouldn't it have detected the phone number 416-260-2875 and extracted it? It seems to comply with the syntax I have entered..

User avatar
DataMystic Support
Site Admin
Posts: 2140
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia

Re: Why isn't it extracting the phone numbers?

Postby DataMystic Support » Mon May 24, 2010 3:59 pm

Did you place

Code: Select all


in the Replace With field

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 8 guests