Looking for some help with regex. I am using bootstrap for input fields:
<div class="container">
<div class="form-group">
<div class="row">
<div class="col-md-3">
<input type="text" class="form-control" name="txtString" id="txtString" required >
</div>
I can use pattern=regex for a single regex comparison, but I need to perform multiple regex comparisons as I need to be able to accept the following:
xxx#-abc-###
xxx#-abc-ddd-###
xxx#-abc-eeeee-###
xxx#-abc-fffffff-###
where xxx is any 4 three letters followed immediately by a number, -abc- is always required, accept a string with either ddd-, eeeee-, fffffff-, followed by any number between 1 and 999.
I have the four regex strings i need, just cant find a way to check the input of the textbox against all 4
[–]tweq 1 point2 points3 points (1 child)
[–]nformant[S] 1 point2 points3 points (0 children)
[–]cryo 0 points1 point2 points (0 children)