regex - Hbase RegexStringComparator Filter giving more rows than expected -
i have filterlist several regexstringcomparator filters. have issue when regex string similar .*15.0.0. pick rows such xxx15.0 not interested in. assume because xxx15.0 acting xxx15.0.* matching. there way around in hbase?
based on comment, looks need specify how string terminated. don't provide enough information, i'll give options , can pick 1 fits situation.
if version string appears in string, such shockwave:15.0 installed or like, want "match string shockwave:15.0 that's not followed period". can this:
shockwave:15\.0[^.] if string appears @ end of line, can can specify end-of-line anchor:
shockwave:15\.0$ if either (in middle of line or @ end of it), can combine two:
shockwave:15\.0($|[^.]) that should cover cases....
Comments
Post a Comment