The regex is validating the linux filepath perfectly. But the keypress event doesn\'t allow the user to type the first valid letter itself. When I start typing
keypress