User Guide > Using Content Extraction Language > Pattern Matching and Action Statements
Was this helpful?
Pattern Matching and Action Statements
The following topics provide information about pattern matching and action statement:
The main part of a script is a sequence of pattern-action statements.
Pattern { action statements }
Pattern { action statements }
The pattern comes first, and then the action. Either the pattern or action may be missing in a statement. If the pattern is missing, the action will be executed for every single input line. A pattern with a missing action does nothing. Since the pattern or action may be missing, action statements are enclosed in {and} to distinguish them from patterns.
Last modified date: 02/09/2024