Regular Expressions 101

Changes Log Tag verify for Languages Code sub-versioning

Open Workspace
  • PCRE2 (PHP)
  • Match
1

Regular Expression

/
^(?=.*(?<subtagcha>_*CHA_+))(?=.*(?<subtaglog>_*LOG_*))(?=.*(?<subtagtag>_*TAG_*)).*
/
gm

Description

Search for the occurence of the 3 following words: CHA, LOG and TAG. Should be in the above order sequence (but it also if works swapped).

Submitted by XrosaXasorX