I need help with regex_replace.
For photo/image assets, the the description field, I have the description and the source of the photo. For example:
This is a photo of a Fuji apple taken at the Farmers Market downtown.The apples are not in season, so, this might be from storage.
Source: Apple paparazzi
I want the
to return the string from "Source" onward only. This site has multiple authors, so, I have no control on character returns people put in there, the only thing I force people to to is use "Source:" as the delimiter.I tried
, didn't work.Tried
, didn't work either, even tried\(.*\r\)*Source/g, still not working.
Please, can someone give me a pointer here? Getting frustrated with regex in MT.. :-(
Any help appreciated.
Reported on Movable Type 4.2
Try regex_replace="/(.*)Source:(.*)/ig","Source:$2"
Try This