Regex: matching up to the first occurrence of a character

JohnF

New Member
Hey, I am looking for a pattern that matches everything until the first occurrence of a specific character, say a ";" - a semicolon.I wrote this:\[code\]/^(.*);/\[/code\]But it actually matches everything (including the semicolon) until the last occurrence of a semicolon.
 
Back
Top