<?php
$re = '/^\h+|\h+$|(\R){2,}|(\s){2,}/m';
$flightinfo = ' 1 . BritishAirways 15FEB LONDON HONGKONG
2 . CathayPacific 01MAR HONGKONG SHANGHAI
3 . Qantas 12MAR SINGAPORE SYDNEY';
echo $flightinfo;
PD9waHAKCiRyZSA9ICcvXlxoK3xcaCskfChcUil7Mix9fChccyl7Mix9L20nOwokZmxpZ2h0aW5mbyA9ICcgMSAuIEJyaXRpc2hBaXJ3YXlzIDE1RkVCIExPTkRPTiBIT05HS09ORwoKCiAgICAgMiAuIENhdGhheVBhY2lmaWMgIDAxTUFSICAgICBIT05HS09ORyAgIFNIQU5HSEFJCgoKCiAgMyAuIFFhbnRhcyAgIDEyTUFSIFNJTkdBUE9SRSBTWURORVknOwokZmxpZ2h0aW5mbyA9IHByZWdfcmVwbGFjZSgkcmUsICckMSQyJywgJGZsaWdodGluZm8pOwplY2hvICRmbGlnaHRpbmZvOw==