I have the following PHP regex:
/\b([A-Z0-9]{8})\b/i
in which I wanted to convert to a javascript regex. So I tried the following:
/^(\b([A-Z0-9]{8})\b/i
however it failed. Why is this? I am trying to check if a string has a word that contains 8 digit of alphanumeric character, ignoring uppercase and lowercase (meaning that 2HJS1289 and 2hjs1289 should match). The string needs to have 8 digits.
(), and only one closeing?