I'm trying to do a regex replace (http://www.smarty.net/docsv2/en/language.modifier.regex.replace.tpl) using smarty but I'm unsure of the correct regex syntax.
What im trying to achieve is turning:
- i-am-something-specific-thing-1
- i-am-something-specific-thing-2
- i-am-something-specific-thing-3
- i-am-something-specific-thing-4
into i-am-something
Any pointers and explanations as how the regex syntax would look like for this would be much appreciated.