Here's a Regex that you can use to include and exclude multiple lines in the Eclipse MAT histogram filter.
Regular expression filter to include strings
.*STRING1.*|.*STRING2.*|.*STRING3.*
For example, "java.util", "java.lang", "char []"
.*java.util.*|.*java.lang.*|.*char\[\].*
Regular Expression Filter to Exclude Strings
^(?!.*STRING1|.*STRING2|.*STRING3).*$
Example excludes "java.util", "java.lang", "char []"
^(?!.*java.util|.*java.lang|.*char\[\]).*$
source share