RegEx question

Can you specify in RegEx that a string must be of a specific maximum length and contain at least one specific character (eg “all five or less letter words containing an e”)?

Tia

Markus

@Kem Tekinay has a super power - he is Regex Man and I’m sure he’ll be around soon :slight_smile:

Use a lookahead to confirm the length, something like this (keeping in mind I’m on my phone and can’t test):

(?=\\b\\w{2,5}\\b)\\b\\w*e\\w*\\b

time to make RegexRX for iOS ?