I want to make a regular expression which will validate string of particular type.
The conditions to validate string are as follows:
- String should not contain characters like \ (backslash), / (forward slash), : (colon), * (asterisk), ? (question mark), " (double quotes), < (left angle bracket), > (right angle bracket), | (pipe)
- Do not contain a hyphen (-) or a period (.) as the first or last character of a string.
I tried a lot but not getting any success as I require single regular expression fulfilling all conditions.