Sample Regular Expressions

From Simple Wiki

You can find different sample Regular Expressions that can be used in the SimpleIndex template for matching below.

Sample 1[edit | edit source]

Description: If you want to read every character after a certain tag or combination of tags until a line feed.
Scenario: Read everything after "Job: or Job # or Job"
RegEx: (?<=(Job:|Job #|Job)).+

Sample 2[edit | edit source]

Description: If you want to read every character after a certain tag or combination of tags until it reads another tag.
Scenario: Read everything after "Job: or Job # or Job" until "Ticket #"
RegEx: (?<=(Job:|Job #|Job)).+(?=Ticket #)