Basic pattern parsing