
flatgrape
Novice
Apr 10, 2011, 9:00 PM
Post #1 of 2
(403 views)
|
|
.* Regular Expression Help!
|
Can't Post
|
|
I am just reading RSS files into my script and having trouble with a regular expression for the following: <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?
|