How can i get the words from the string

String = “The Champion,(David), participant No. A345B(Runner), from University had won gold (testing) on (06.06.2019) at (Asia). His timing is 2mins.”

How can i get david, A345B, from university had won gold, 06.06.2019, his timing is 2 mins from the string without ()?
Thanks !

use Assign Activities :

String text = “The Champion,(David), participant No. A345B(Runner), from University had won gold (testing) on (06.06.2019) at (Asia). His timing is 2mins.”

String text1 = text.Replace("("," ")

String Final = text.Replace(")"," ")

Basically replace ( and ) with a space. let me know if it worked !

Capture

Hi @t_hj,
You can achieve it by using different regex expression for this phrase (Matches activity). Two examples:
https://regex101.com/r/Tyxs9N/1
image
image

but it still contains the “(”, i only want the words only

String text = “The Champion,(David), participant No. A345B(Runner), from University had won gold (testing) on (06.06.2019) at (Asia). His timing is 2mins.”

String ReplacedText = text.Replace("("," ")

String Final = ReplacedText.Replace(")"," ")

First store the result in ReplacedText .

In second assign use ReplacedText.replace as shown above and store the result in Final.

You can see in my screenshot that it’s without brackets.