added test css file
fixed a bug in RegEx and shortened it