I'm not good in regular expression, but today I faced an unavoidable situation, So I need a regular expression that matches the case below:
|hhas.jpg||sd22-9393das.png||8jjas.png||IMG00338-20110109.jpg|
I tried this regex : /(?<=\|)(\w|\d+\.\w+)(?=\|)/i but not getting the desired results...
I want to match all the strings by using preg_match function of PHP between two | signs ie hhas.jpg, sd22-9393das.png etc...

preg_split()with~\|+~. After that you only need to get rid of empty values.