I thought ?= acts like an AND operator.
Condition would be to capture words with >5 Upper-Case AND 4 Lower-Case and any other non-whitespace in the word.
Here's what i came up with - doesn't seem to work:
"s/(\S*[A-Z]{5,})(?=[a-z]{4,})\S*//g"
Would want it to capture strings like these:
adsdkdkDKDKDdkd:djkDKDK
ASaFaAdfkK-asdfoiA
asdfASDFF
I realized this actually works but doesn't work on words with non-consecutive A-Z. Any idea how to make it work with non-consecutive A-Z?
TEST1 doesn't work (non-consecutive):
| makeresults | eval TEST="AAAaAAaaaassdjkd" | rex field=TEST max_match=0 "(?\S*([A-Z]{5,})(?=[a-z]{4,})\S*)"
TEST1 Does work (consecutive AAAAAaaaa)
| makeresults | eval TEST="AAAAAaaaassdjkd" | rex field=TEST max_match=0 "(?\S*([A-Z]{5,})(?=[a-z]{4,})\S*)"
... View more