how to get specific word from the string javascript
var str = 'https://dev-bmm-assets.s3.ap-south-1.amazonaws.com/footage-zip%2FAMZ-SF-FSH00685.zip';
var value = str.match('%2F')[1];
alert(value); // 226885
how to get specific word from the string javascript
var str = 'https://dev-bmm-assets.s3.ap-south-1.amazonaws.com/footage-zip%2FAMZ-SF-FSH00685.zip';
var value = str.match('%2F')[1];
alert(value); // 226885
find element that has certain text javascript
for (const a of document.querySelectorAll("a")) {
if (a.textContent.includes("your search term")) {
console.log(a.textContent)
}
}
Or with a separate filter:
[...document.querySelectorAll("a")]
.filter(a => a.textContent.includes("your search term"))
.forEach(a => console.log(a.textContent))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us