I am trying to validate my input to see if it is correct. It should be in the format Folder/game.dll
. Below is the code I am using:
<input type="text" name="addRelativePath" ng-model="addGameModel.RelativePath" class="form-control" required ng-pattern="validationRegex">
This is my AngularJS code snippet:
$scope.validationRegex = /(\w+[^.]\/)+\w+.dll/;
However, when I submit the form, nothing happens and the expression in the input field is still considered incorrect. What could be causing this issue?