regex optional whitespace characters
// Add a \s? if a space can be allowed.
// \s stands for white space
// ? says the preceding character may occur once or not occur.
// If more than one spaces are allowed and is optional, use \s*.
// * says preceding character can occur zero or more times.
'#<a href\s?="(.*?)" title\s?="(.*?)"><img alt\s?="(.*?)" src\s?="(.*?)"[\s*]width\s?="150"[\s*]height\s?="(.*?)"></a>#'
Also in JavaScript:
- javascript splice without changing array
- primitive and non primitive data types in javascript
- multi-dimensional array js
- javascript input value change
- how to reload the same page using javascript
- how do i pair of socks in an array javascript
- fetch post js
- react native cover image in parent view
- react native header
- flatten nested array javascript
- ionic 1 decorator example
- Unable to resolve "react-navigation-stack" react native
- javascript find element in array and remove
- js percorrer objeto
- how to auto close alert box javascript
- add edit delete from table using jquery
- join method javascript
- javascript clearinterval
- AttachConsole failed with error 6: The handle is invalid.
- get ascii value of char javascript
- array in javascript
- repeat a function javascript
- capitalize algorithm
- change items loop react