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:%22Robert+Redpath%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Robert Redpath</span></span></a></span> <span class="date"><a href="/search?l=cf-talk@houseoffusion.com&q=date:20050908" rel="nofollow">Thu, 08 Sep 2005 16:57:53 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>cool - I think that's it! ________________________________</pre><pre> From: Ben Doom [<a rel="nofollow" href="mailto:[EMAIL">mailto:[EMAIL</a> PROTECTED] Sent: Thu 9/8/2005 6:04 PM To: CF-Talk Subject: Re: RegEx to grab <title> from referring page 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! --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:217719">http://www.houseoffusion.com/lists.cfm/link=i:4:217719</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=89.70.4">http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.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 buttondisabled" accesskey="p" href="#">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd15.html#232018">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail15.html#232018">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg232019.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> </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="76FBF6E9151E2D49AE05EF8E13727DBC797446@NMHABEDS2.nmha.org"> <input type="hidden" name="relpath" value="cf-talk@houseoffusion.com/msg232018.html"> <input type="submit" value=" Robert Redpath "> </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="#" title="p">Previous message</a></li> <li class="icons-next"><a href="msg232019.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">76FBF6E9151E2D49AE05EF8E13727DBC797446@NMHABEDS2.nmha.org</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9d68a8258fb0f8ab',t:'MTc3MjU0MTA3Mg=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>