Replace string that contains dynamically numbers : <p>i have a variable that contains the string: attribute_value[XXX][] where XXX every time that page loads is a 3-digit number that changes every time.</p>

<p>How can i use .replace function in javascript to replace attribute_value[XXX][] with something specific regardless the XXX value?</p>

<p>Thank you in advance</p>
