aberdons 0 Posted July 28, 2012 Report Share Posted July 28, 2012 I'm trying to scrape the title from a site and filter out the page headline. Basically I need it to extract everything before the pipe ( "|" character), but I've been at it for hours and I can't figure it out! Format: Headline | Site | Date I need to filter out the Headline element, can anyone help? Quote Link to post Share on other sites
Legend 181 Posted July 29, 2012 Report Share Posted July 29, 2012 Something like this? set(#Page Title, $replace($find regular expression("Page URL | Page Title", "\\|(.*)"), "|", $nothing), "Global") http://www.ubotstudio.com/forum/public/style_emoticons/default/rolleyes.gif Quote Link to post Share on other sites
k1lv9h 76 Posted July 29, 2012 Report Share Posted July 29, 2012 Hi, This code will return "headline"set(#workwith, "Headline | Site | Date", "Global") set(#Page Title, $replace regular expression(#workwith, "(\\s\\|.*)", $nothing), "Global") Kevin Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.