Best answer

Replacing text that has a variable string

  • 26 November 2021
  • 1 reply
  • 494 views

Userlevel 3
Badge +1

I have a numbered list in text, with the format

1# blah blah blah

2# yo yo yo

3# do wa diddy

and I need to get rid of the 1# 2# 3# etc. This list could be really long. 

Can anyone thing of an efficient way that doesnt loop a million tasks to replace everything with some sort of wildcard? Iike find all (*#) and replace with a blank?

Thanks!

icon

Best answer by Troy Tessalone 26 November 2021, 18:00

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +14

Hi @AppGuyAaron 

Try a Code step to do the regex replacing.

Use the replace() method: https://www.w3schools.com/jsref/jsref_replace.asp

 

 

RESULTS