I'm working in C# and need to validate an input string. Valid strings can contain 0 to 1 instances of the following characters - T, R, B, and/or L and can contain no other characters. The characters can appear in any order in the string. None or all of the characters can be present (the string can be empty or have up to 4 characters in it).
Valid strings would include TRBL T LBRT BR RL "null"
Invalid strings would include trbl TABL TTRBL 0B
Thanks for any suggestions you have!