First page Back Continue Last page Image

/^(file|http):\/\/\S+\/\S+\.(gif|jpg|png)$/i;

/ -The Start and End of the Regular Expression

^ -We are examining a String, and it ends here -$

()-A And Group

|-A Or Condition

\S+ - One or More Non White Space

\/ - Escaped "/" *2

Do not treat this expression as case sensetive - i