Vue regular problem

has an input input box, and you need to add a regular

to its keyboard event.

the requirements are as follows:

  • users can only enter letters and numbers (no spaces)
  • convert to uppercase letters automatically if lowercase letters are entered
  • if you enter spaces or other symbols, all Filter drops

str=str.replace(/[^a-z\d]/ig, '').toUpperCase()

controls all uppercase text with text-transform:uppercase; .


str=str.replace(/[^a-zA-Z0-9]/g, '').toUpperCase()
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34cef-4d5e0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34cef-4d5e0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?