Storage problem with ngram filters

right now my min and max ngram settings are : 3 - 40

but there are cases where i need longer max values ..

is there any other alternative for ngram?

any other way to match sub strings and all ? like regular expression etc