Sample Regular Expressions

From Simple Wiki
Revision as of 16:08, 13 April 2023 by ScanStoreAlex (talk | contribs) (Created page with "==== Sample 1 ==== 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" Re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sample 1[edit | edit source]

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]

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 #)