@Zohaib1999
Here you go!! We have multiple ways to do that.
But below is PAD way of doing(Not scripts):
1. Create one more list variable as per your wish(In this example, I have created like Date_Replaced_Quelltext)
2. Iterate the previous list(Quelltext) using foreach
3. Replace date with empty string using regex
4. Insert the new value into newly created list

Result:

Code:
Variables.CreateNewList List=> QuellText
Variables.AddItemToList Item: $'''21 23.02.2024''' List: QuellText
Variables.AddItemToList Item: $'''00:00''' List: QuellText
Variables.AddItemToList Item: $'''am''' List: QuellText
Variables.AddItemToList Item: $'''bis''' List: QuellText
Variables.AddItemToList Item: $'''23.02.2024''' List: QuellText
Variables.AddItemToList Item: $'''Way 01.01.2024''' List: QuellText
Variables.CreateNewList List=> Date_Replaced_QuellText
LOOP FOREACH CurrentItem IN QuellText
Text.Replace Text: CurrentItem TextToFind: $'''\\b\\d{2}\\.\\d{2}\\.\\d{4}\\b''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''%''%''' ActivateEscapeSequences: False Result=> Replaced
Variables.AddItemToList Item: Replaced List: Date_Replaced_QuellText
END
Thanks,
Deenu
-----------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as Accepted solution. If you like my response, please give it a Thumbs Up. Thank you.