Apr 10, 2011, 9:00 PM
Post #1 of 2
I am just reading RSS files into my script and having trouble with a regular expression for the following:
.* Regular Expression Help!
<source url="http://www.websitehere.com/otherlinks/andstuffinhere=83858393050">Frank Blogs</source>
Each source URL is going to be different understandably.. I am wanting to store the 'Frank Blogs' bit of each different source url though. So far I have, to store the results into an array:
@creator[$count] = $story =~ m#(?<=<source url=.*>)(.*?)(?=</source)#g;
But it isn't working, giving me some sort of warning about Variable length lookbehind not implemented in regex.
I know that to match any character it is '.' and either + or * for many times.
Anyone know what i'm doing wrong?