I would like to create a javascript regex to test a string that would accept only characters from 0 to 9, a to z, A to Z and the followings chars: + * . for a total length betwe
You're not setting it to match the start and end:
var reg = /^[0-9A-Za-z\+\*\.]{1,10}$/;