I'm not clear what you mean by 'like' these examples. It sounds like you're not wanting to match specific strings, so can you also include a description of what you're trying to match? My example was matching alphanumeric strings separated by at 4-10 underscores.

If you're wanting to match strings tokenized by _ or | into at least 3 different tokens, you could do something like:

var %a $numtok($nick,$asc(_)) + $numtok($nick,$asc(|))
if (%a >= 3) do stuff