The 20170626/1498445461112119.png (date/file name) path after taking out image/ is also ok. I can manually spell the previous one. . .
I'm sorry that I can't adopt more than one. I logged in to segmentfault after taking them out. Thank you very much.
With regular rules: $preg='//d/d.[jpg|jpeg|png|bmp|gif]*/i';
Output:
If you are interested, please watch my introductory lecture on regular expressions: Learn to use regular expressions in one hour
Regular expressions are more convenient
Use regular matching, and then use
()
to extract the piece as a subset