showing results for - "regex optional whitespace characters"
Jannik
30 Jul 2018
1// Add a \s? if a space can be allowed.
2// \s stands for white space
3// ? says the preceding character may occur once or not occur.
4// If more than one spaces are allowed and is optional, use \s*.
5// * says preceding character can occur zero or more times.
6
7'#<a href\s?="(.*?)" title\s?="(.*?)"><img alt\s?="(.*?)" src\s?="(.*?)"[\s*]width\s?="150"[\s*]height\s?="(.*?)"></a>#'