AnsweredAssumed Answered

Removing a last character in a variable.

Question asked by ctoper11 on Apr 4, 2018
Latest reply on Apr 10, 2018 by ctoper11

Hi all, I have what I hope is a fairly easy question. I'm using some regex to manipulate some data in a multiline text box. It removes some characters, puts them all in a new line and adds brackets to the left of them. And example below:

 

 

[  ] Microsoft Word

[  ]Firefox

[  ]Internet Explorer

[  ]

 

My problem is with that last bracket as it places that at the end. So far any pattern I used gets rid of all of the brackets. Is there a way to just trim that last one so it can look like this:

 

[  ] Microsoft Word

[  ]Firefox

[  ]Internet Explorer

 

Thank you in advance.

Outcomes