Validate if a string contains only some characters in javascript
<p>I know this question has been asked here many times, but mine is a tad different. I do not want to validate if the string is alphanumeric, I just need it to only consist of a few characters, let's say letters: A, B, a, b and this symbol >.
Is it possible with regex?</p>