I am not able to this regex as alphanumeric.This regex is fulfilling all my requirements but it is not alphanumeric i.e it must validate if the value entered is alpha numeric or not.The regex is below
^
(?!(.)\1+$)
(?!.*([a-zA-Zа-яА-Я0-9ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞߟàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0-9]\d)\2{3})
(?!.*([ '"-])\3)(?![a-zA-Zа-яА-ЯÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞߟàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0-9\d]*\W{2})
(?=.*[a-zA-ZÀ-ÖØ-ߟà-çа-яА-ЯÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞߟàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿè-ÿ0-9\d])
(?!.*[Pp]+(OST|ost)*\.*\s*[Oo0]*(FFICE|ffice)*\.*\s*[Bb]*\.*\s*[Oo0]*\.*\s*[Xx].*)
[a-zA-ZÀ-ÖØ-ߟà-çа-яА-ЯÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞߟàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿè-ÿ0-9\d\ *"(:,\/.\\;&)\[\]_+#'-]{3,40}
$
It should accept all the below criteria.It is fullfilling all the criteria only "It Must have at least 3 compulsory alpha-numeric characters excluding special character" is not being fullfilled. The regex should fullfill the below conditions:
- Minimum of 3 characters (includes alphabets and numbers, not including Special Characters )
- It Must have at least 3 compulsory alpha-numeric characters excluding special characters
- All alphabets cannot be the same in a standalone word. However, if they are a part of the word, we will allow the same. For example - AAA is not allowed but Haaadoop is allowed
- Consecutive alphabets less than or equal to 3 are allowed in a word. Ex– Haaadoop is allowed but Haaaadoop is not allowed.
- Three or more consecutive Standalone alphabets are not allowed. Example - AA is allowed. AAA is not allowed.
- All numbers can be the same. Example – 111 is allowed
- If more than 1 special character (In a word or Standalone) are consecutively entered, it is invalid. Example A-B is allowed, A- -B or A-&B is not allowed
- Allow special characters #&()_+[]:;',/.-"*
- Consecutive dashes, apostrophes are not allowed in any part of the string
- It should accept these international and cyrilic characters as well ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞߟàáâãäåæçАаБбВвГгДдЕеЖжЗзИиЙйКкЛлМмНнОоПпРрСсТтУуФфХхЦцЧчШшЩщЪъЫыЬьЭэЮюЯяèéêëìíîïðñòóôõöøùúûüýþÿ
- These international and cyrilic characters should be accepted in starting of the word or in between of the words or in the end of the word
The acceptance criteria is:
Haaadoop 123
A-B 123
123 âãäåæçèéêëìíî
нОоСсТт 123
123 нОоСсТт
нОр123Тт
123 Haaadoop
123 A-B
âãäåæçèéêëìíî 123
âãäåæ123çèéêëìíî
It should not accept:
Haaaaadoop 123
A- -B 123
A- -B 123
A-&B123
AAA
abcd
123
123 Haaaaadoop
123 A- -B
123 A- -B
2 a