Support Center > Search Results > SecureKnowledge Details
"Error while trying to find LSS for pattern. Verify that pattern contains LSS" message in SmartDashboard when adding Regular Expression
Symptoms
  • When trying to add a regular expression for DLP / Identity Awareness in SmartDashboard, the following error appears :
    "Error while trying to find LSS for pattern. Verify that pattern contains LSS"

    Example for a DLP pattern data-type:

Cause

When the regular expression engine compiles the patterns, it searches for the "Longest Simple String" (LSS) within the pattern.

Check Point regular expression engine does not support patterns without LSS.

For example, in the pattern \w{5}abc\w{2} , the LSS is abc.

This is done to boost the performance of regular expression matching when scanning text.

Examples:

  1. The regular expression dogs? is composed of the LSS dog - dogs? and the pattern would match dog and dogs
  2. The regular expression \d dogs? is composed of the LSS 0 dog - \d dogs? and would match 1 dog, 2 dogs, 3 dogs, etc.
  3. The regular expression \w{4} does not contain an LSS and would be refused.
  4. If you try j\w\w\w or j\w* (where the LSS is j). They will both work. You need to have an EXACT match.

Note: An exception is a pattern without LSS that contains digits. Patterns that contain digits are considered patterns with LSS.


Solution
Note: To view this solution you need to Sign In .