                    if let styleString = regx.subgroupMatchAtIndex(0)?.trim,
                        let regxsubs = Regex("\\.([\\w]*)[\\s]*\\{[\\s]?([^}]*)[\\s]?\\}").match(styleString){
                            for regxsub in regxsubs {
                                let className = regxsub.subgroupMatchAtIndex(0)!.trim
                                let values = regxsub.subgroupMatchAtIndex(1)!.trim
                                if let aHtml = Regex("@"+className).replace(finalHtml, withTemplate: values) {
                                    finalHtml = aHtml
                                }
                            }