I currently have this:
$population = '1,601 (2001 census){{Census 2001 AUS|id=SSC12856|name=Palm Beach (State Suburb)|accessdate=30 June 2007|quick=on}}';
I want this:
$population = '1,601 (2001 census)';
I've tried using preg_match
to remove everything after what I want, but I can't figure out the regex.
How would I accomplish this?