I have a javascript reg ex that accepts the Basic Latin character set
^[\u0000-~]+$
But I also need to not accept the dollar sign ($)
I was thinking
^[^$][\u0000-~]+$
Is this possible?
I have a javascript reg ex that accepts the Basic Latin character set
^[\u0000-~]+$
But I also need to not accept the dollar sign ($)
I was thinking
^[^$][\u0000-~]+$
Is this possible?
Assuming you just want to validate input, you can split the range around $
which should be \u0024
^[\u0000-\u0023\u0025-\u007e]+$
And for the record, ^[^$][\u0000-~]+$
would only ensure that the first character wasn’t a dollar sign.