Forum Academy Marketplace Showcase Pricing Features

Displaying a Single Defined Character of a Custom State Value

I am trying to pull a single character out of a value and wondered if this could be done without Regex. For example, if I have the word “TEST”, I would like to set a conditional to only show the 3rd character. I want to be able to extract a letter from a value at a precise location. Thanks!

EDIT. I do believe I can accomplish this with the Regex with /.{3}/ but was curious if the functionality existed.

Using regex to match the first 3 characters and then using the truncate from end to display the last character in effect gives you the 3rd character of the original string.

Here is the result

This worked flawlessly! Thanks so much for your help.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.