rewrite the reguler express for parsing class or style string into act data struct