I need to look for these words in chat messages:

"JavaScript", "MetallicRagnarokнУидАльшелюбойтекстилицифры3". 

those. upper case letter, at least 1 lower case letter, another upper letter and at least one lower case, and the “@” symbol should not appear in this word. Example:

 Scottybot Most Recent Code: BestDoggoEver 

From the example, only the word BestDoggoEver should be true . Thank you in advance.

    1 answer 1

     [A-ZА-Я][a-zа-я]+([A-ZА-Я][a-zа-я]+)+ 

    Check

    A word sifting option with a dog in front and behind the word:

     (\s|^)([A-ZА-Я][a-zа-я]+([A-ZА-Я][a-zа-я]+)+)($|\s) 

    The truth will be a drawback, whitespace characters will get into the expression, but you can take from group 2 the expression.

    Check

    The presence of the word boundary symbol in your dialect will certainly make your life easier;).

    • Thanks It works. Only even "@BestDoggoEver" has a coincidence, but I need that if there is an "@" before this word - there is no coincidence. - Amin Isaev
    • @AminIsaev, it will depend on the dialect, how word boundaries will be determined, but one of the options I gave you. - Mirdin