I need a regular expression that does not start with a dot or ends with [-_.]
Below the regular expression works, but is not executed for the first condition ie; does not start from a point.
^[A-Za-z0-9][^.]*[^-_.][A-Za-z0-9]$
for example: test.com must be a valid string, but it fails.
source
share