Remove Special Character

How to remove special characters ?

Input - ['' ABC "]
I want result - ABC

Hi, and welcome to the forum! :slight_smile:

Your input looks like it may be from a Text Blaze list, If it is, you can use [1] to access the first element of the list.

If it's not from a list, you can use a regular expression remove the non alphabetic characters:

Here is an example showing both solutions:

{formtext: name=input; default=[" ABC "]}

Approach 1: Access the first element of a Text Blaze list:

Approach 2: Remove all non alphabetic characters:
{=replaceregex(input, "[^A-Za-z]", "", "g")}

1 Like