Re: RegEx to grab from referring page</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=cf-talk@houseoffusion.com&q=from:%22Ben+Doom%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Ben Doom</span></span></a></span> <span class="date"><a href="/search?l=cf-talk@houseoffusion.com&q=date:20050908" rel="nofollow">Thu, 08 Sep 2005 15:06:10 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>IIRC, that error is also thrown when you feed rereplace() text that is too big. Try getting the left() 5k or so. The title should surely be in there if it exists!</pre><pre> --Ben Robert Redpath wrote: > I'm trying to grab the title from a referring page and not having much luck. > > I keep getting a " Bad regular expression " error. > > This is what seems to be causing the error, but it seems like it should work. > > <cfset pageTitle = ReReplace(cfhttp.fileContent, > ".*<title>([^<>]*)</title>.*", "\1")> > > > > Any ideas? > > Thanks, > Bob > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. <a rel="nofollow" href="http://www.houseoffusion.com/banners/view.cfm?bannerid=67">http://www.houseoffusion.com/banners/view.cfm?bannerid=67</a> Message: <a rel="nofollow" href="http://www.houseoffusion.com/lists.cfm/link=i:4:217708">http://www.houseoffusion.com/lists.cfm/link=i:4:217708</a> Archives: <a rel="nofollow" href="http://www.houseoffusion.com/cf_lists/threads.cfm/4">http://www.houseoffusion.com/cf_lists/threads.cfm/4</a> Subscription: <a rel="nofollow" href="http://www.houseoffusion.com/lists.cfm/link=s:4">http://www.houseoffusion.com/lists.cfm/link=s:4</a> Unsubscribe: <a rel="nofollow" href="http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4">http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4</a> Donations & Support: <a rel="nofollow" href="http://www.houseoffusion.com/tiny.cfm/54">http://www.houseoffusion.com/tiny.cfm/54</a> </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg232006.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd15.html#232007">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail15.html#232007">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg232018.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email tSliceCur"><span class="subject">Re: RegEx to grab <title> from referring page</span> <span class="sender italic">Ben Doom</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg232018.html">RE: RegEx to grab <title> from referring page</a></span> <span class="sender italic">Robert Redpath</span></li> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: RegEx to grab <title> from referring page"> <input type="hidden" name="msgid" value="4320B585.6010903@moonbow.com"> <input type="hidden" name="relpath" value="cf-talk@houseoffusion.com/msg232007.html"> <input type="submit" value=" Ben Doom "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="cf-talk@houseoffusion.com"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search cf-talk"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/cf-talk@houseoffusion.com/">cf-talk - all messages</a></li> <li class="icons-about"><a href="/cf-talk@houseoffusion.com/info.html">cf-talk - about the list</a></li> <li class="icons-expand"><a href="/search?l=cf-talk@houseoffusion.com&q=subject:%22Re%5C%3A+RegEx+to+grab+%3Ctitle%3E+from+referring+page%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg232006.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg232018.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> <a href="#"><img src="/cf-talk@houseoffusion.com/logo.png" alt="cf-talk"></a> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">4320B585.6010903@moonbow.com</li> </ul> </div> </body> </html>