I am looking to validate an input text against the following pattern in JS/JQuery: <some_string>:<some_string>.
Examples:
A110:B120AB12C:B123
I know this might be too naive, but appreciate any help here.
You could use this:
^[A-Z0-9]+:[A-Z0-9]+$
That will match your examples and any other that has at least 1 character in each side and only has upper case letters and numbers.
You can refer to this answer in order to know how to test a regex against a string.
[A-Z0-9]+ to [A-Z0-9]{1,}.
:and not:, which is^[^:]+:[^:]+$. Anything more specific and you will miss matches you should get.