hi,
i am using feedapi_scraper,whick is very good, thanks for you excellent work.
but i have a problems, hoping you can help me.
you can see the picture, i test the regular expression in my php test ,it's right,i can get the result.i want the "$30-250". my code is :
$subject="Hello,Thanks for reviewing my bid. I'm currently looking for the help of a good english to spanish translator to help me translate a couple pages in the topic of dog training.The help will consist in translating around small 7-10 documents, each of around 500-800 words... (Budget: $30-250, Jobs: Proofreading, Translation)";
preg_match_all('/\$\d+-\d+/', $subject, $result);
print_r($result);
i get the right resulte.
but in feedapi_scraper, said " Test: "/\$\d+-\d+/" reported errors.".
i don't know what's happen, maybe it's a bug. hoping you can help and fix it.
thank you..thank you...
Comments
Comment #1
ncameron commentedWas having a similar problem, was a bit befuddled as to why this was marked as fixed when there was no solution. After a bit of poking, what worked for me was including delimiters e.g.
goes to
For more info on delimiters in RegExs see: http://stackoverflow.com/questions/396557/pregmatchall-function-preg-mat...
Hope this helps someone
Neil
Comment #2
ademarco commentedThanks for the tip, I'll check it out. Fixed mark is indeed wrong.
Comment #3
entrigan commentedWhat is the status on this?
I have been unable to make this work, but unfortunately the "errors" do not get logged to watchdog, so I am not sure where to look for a solution.
Comment #4
BenK commentedI also have this problem. I can't get regular expressions to work at all. I always get the "reported errors" message.
Thanks,
Ben
Comment #5
siteboy commentedMe too. But this could be due to my lack of experience with regular expressions. Does anyone have any working examples to get me going ?
Thanks