Page 1 of 1

Need help with String

Posted: Sat Apr 18, 2009 6:16 am
by renegade1985
Hi,

Currently I am implementing a screen scrape script and have everything working except one thing.

I need to remove all the text in the string up to a certain point. A pattern that is repeated on every page is the date

Here is an example of the return of the scraper:

1) on Funding cuts throws major Donegal festivals into doubt Apr 16, 12:01 pmFailte ireland is cutting funding for two of Donegal's biggest festivals this year with the support programme set to be scrapped completely from next year.

2) on Support for Older People Scheme could be saved - Alcorn Apr 16, 10:51 amA Donegal Councillor says it's possible that a decision to withdraw funding for the Community Support for Older People Scheme in last weeks mini budget can be reversed .

I only want the text after the time and the pattern I am looking to match will be the first 'am' or 'pm'. I know this isn't foolproof but it'll be good enough for now :lol:

Any ideas on how to get this?

Re: Need help with String

Posted: Sat Apr 18, 2009 7:21 am
by renegade1985
Never mind, I worked it out :)

I just exploded it at ':' and got the substring starting at 5 :D