Comples shortcode

Is it possible to write shortcodes with complex logic?

I want to transform template like this: {{< t 59a12b >}}

to

<div>5a</div>
<div>9a</div>
<div>1b</div>
<div>2b</div>

Is it possible to accomplish with shortcodes? I wasn’t able to figure out how to do it.

I forgot to mention, that input string can by any number of characters, so it could be 1a419b, 1123a3b, etc.

Your goal is unclear.

1 Like