I'm building a template for web components whose class names should depend on the file name. In practice:
Now, I was able to return the desired component name including the prefix with the following expression:
I though in order to strip the prefix I could use a regular expression:
regularExpression(camelCase(fileNameWithoutExtension()), ^.+[-], "")
However, it obviously didn't work. I couldn't find any example about regularExpression(String, Pattern, Replacement) usage in the docs. Any help please?