i have a lil problem. I try to correct the users input for a MAC Address with Javascript. On Textinput, after every second character there should be a "-" inserted. That works not hundred percent, if there where entered less then 12 characters then 5 minus will be inserted after the input.
Now i will remove them with the Javascript Replace() function. Therefore i need a RegEx that will find one or more "-".
But i couldnt build one that works... I dont know why this one wont work.
Code: Select all
/\\-{1,5}$/gThank u very much so far im a real RegEx noob!