/AB +CDE/; # one or more spaces /AB\s+CDE/; # one or more spacing characters (incl. spaces, tabs, end of line, etc.)