Show if field "subject" contains one or more camel case strings like:
LuckyChance to Receive a FREE IpadPro! ClaimNow!
I'm having a hard time creating a regex for this.
Please help.
Thank you.
| eval isCamelCase=if(match(subject, "([A-Z]([a-z0-9]+)){2,}"), 1, 0)that will look for two or more capitalised words, which are followed by one or more lower case/numeric values
Very simple regex looks for 1 capital followed by a lower case.
Is that enough?
| eval isCamelCase=if(match(subject, "[A-Z][a-z]"), 1, 0)
Unfortunately, it's detecting subjects which have somewhat valid capitalization.
| 1 | Your Monday afternoon trip with Uber |
| 1 | Our SUPER Club Benefit |
| 0 | I RECORDED YOU! |
I would like to identify subjects that contains concatenated strings like "LuckyChance" and "DysonVacuum" from the sample below:
LuckyChance to Receive a FREE DysonVacuum!
Thank you.
| eval isCamelCase=if(match(subject, "([A-Z]([a-z0-9]+)){2,}"), 1, 0)that will look for two or more capitalised words, which are followed by one or more lower case/numeric values
This works!
Thank you.