Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?<=params\.).*?(?=\])
/
gm
Input 1
function pastEvents(username, params) { // 305 /** // * @description Docs: http://www.songkick.com/developer/past-events-for-user // * @param {string} username // * @param {object} [params={}] // * @param {number} [params.page=1] // * @param {number} [params.per_page=50] - 50 is the max // * @param {string} [params.order='asc'] - 'asc' or 'desc' // * @returns {Promise}
Substitution
function pastEvents(username, params) { // 305 /** // * @description Docs: http://www.songkick.com/developer/past-events-for-user // * @param {string} username // * @param {object} [params={}] // * @param {number} [params.page=1] // * @param {number} [params.per_page=50] - 50 is the max // * @param {string} [params.order='asc'] - 'asc' or 'desc' // * @returns {Promise}