Remove text from a string

I have a string which contains some values between brackets () that i want to remove, what is the best way to do this?

Can you give an example input and output? Thanks :slight_smile:

Think i have it:

system.text.regularexpressions.regex.replace(stINVSupplierTitle2,"(\d\d\d\d\d\d\d)", β€œβ€)

Would it be possible to modify this further. I have text in my string as follows, e.g.
The Company A
The Company B
Company The C

I would like to remove β€œThe” if it appears at the start. So that the output will be:
Company A
Company B
Company The C

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.