const str = ` Name: FirstName LastName
123-45-6789
987-65-4321
Address: 1234 abc Street, Apt. 567, Ricefield, ILE 602701
Phone: (123) 456-7890
t
Email: [email protected]
URL: https://www.example.com
f
IP: 192.168.1.1
Date: 01/01/2023
Price: $99.99
r
Color: Red, Blue, Green, Yellow
Mixed: abc123XYZ987
v
141pple x42anana u0063herry
`;
let regexOctal = /141/;
console.log("regexOctal.exec(str) : ", regexOctal.exec(str));
error at : 141pple
i wanted to see how octal , hex and unicode is worked with regex to search
i tried using ${} in Template Strings and also in new variable without Template Strings but still error
1)
const str = ` Name: FirstName LastName
123-45-6789
987-65-4321
Address: 1234 abc Street, Apt. 567, Ricefield, ILE 602701
Phone: (123) 456-7890
t
Email: [email protected]
URL: https://www.example.com
f
IP: 192.168.1.1
Date: 01/01/2023
Price: $99.99
r
Color: Red, Blue, Green, Yellow
Mixed: abc123XYZ987
v
${"141"}pple x42anana u0063herry
`;
2)const newStr = "141pple x42anana u0063herry";