Trying to extract the text 18-Aug-2019 14:00 form Egypt Today Last Update Time: 18-Aug-2019 14:00 (GMT) and my step was to split at ":" as first step and then do the split " (" section (basically 2 splits ), and 2 splits is not working... can we do this from only one step? thanks
Code trials:
lastupdated1=lastupdated.split("Last Update Time: ")[1]
lastupdated2=lastupdated1.split(" (GMT")[0]
The error is:
2019-08-19 14:54:53.692 ERROR c.k.katalon.core.main.TestCaseExecutor - ❌ Test Cases/REGIONAL MARKET NEWS/Verify_whether_news_getting_updated FAILED.
Reason:
java.util.regex.PatternSyntaxException: Unclosed group near index 5
(GMT
at java_lang_String$split$0.call(Unknown Source)
at Verify_whether_news_getting_updated.run(Verify_whether_news_getting_updated:41)