I'm having little hard time with a regular expression. Any help would be greatly appreciated.
Problem: I want display an error when user enters drive letters in the path.
for example: if user enters C:\ or D:\ or S:\ .... the form should show an error. If someone enters //remote server/example.txt it should allow them to proceed.
http://plnkr.co/edit/jyKfOdnctnhCkIeT4r2Z?p=preview
<form name='myform'>
<input type="text" name='ip' ng-model="usd" ng-pattern="/^[a-zA-Z]:*$/"
ng-change="convert_to_btc()" placeholder="Enter path"/>