12

JavaScript, 40
(c,p)=>c.search(p.replace(/./g,"[^$&]"))
Using replace, this maps the plaintext input into a regular expression of form /[^H][^E][^L][^L][^O]/ (e.g., for plaintext input HELLO) and then uses search to test for the first index of the ciphertext substring that matches that regex. ...