Skip to content

Google Sheets Referencing Data without Special Characters #1348

Closed Answered by Delusionnnn
Delusionnnn asked this question in Q&A
Discussion options

You must be logged in to vote

Solved eventually like so:

I'm not highly skilled but using Regex commands was able to turn a variable that was set to 123456789qwertyz!@#$%^&*() into 123456789qwertyz using the following:

const inputText = automaRefData('variables', 'gpt')
const outputText = inputText.replace(/[^A-Za-z0-9]+/, "");
automaSetVariable('gpt1', outputText)
automaNextBlock()

https://user-images.githubusercontent.com/141815049/272337656-5eb631e2-bd2a-463d-900f-291ed4769c5a.png

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Delusionnnn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant