A regex or 'regular expression' is a description of what a String looks like. For example, the pattern "[\\p{Print}&&[^\\\\/:*?\"<>|]]{0,8}" is a description for a string that is between 0 and 8 characters long, and consists of any printable character, except the characters \ / : * ? " < > |
As you can see, regular expressions can become illegible very quickly. To fully understand them
you should probably look up a tutorial on regular expressions.