ReadyAPI- Regex - delete numbers doesn't work
Hi all,
In my previous post I was looking for a way to run all teststeps with a code that adds a dateTime.
This ticket is to ask how to use Regex in ReadyAPI as this code isn't working:
filenameWithoutExtension.replaceAll("^[\\d]+", "")
So with this regex I want to ask the code to delete all numbers in the name of "filenameWithoutExtension" and replace it with something empty. That "something empty" is something I found on the internet, but I don't think actually that I would need that...right?
But nevertheless, it doesn't work.
Can someone help me with this please? or find another way to delete the date that is already present?
I've tried to find a regex with the help of this site: https://regex101.com/
but that doesn't work neither. Maybe I'm using it wrongly. And of course looked on Stack overflow and a bunch of other forums but none of the description they gave can make ReadyAPI happy.
Thanks in advance,
AAB