Parthiban.VD
(Parthiban Vaithilingam)
January 27, 2020, 7:16am
1
Hello guys,
I am facing one issue, I have a string “str_inputdate = 01/14/2020 IBM CORPORATION”, from the particular string i need to filter date only “01/14/2020” & I need to remove the text “IBM CORPORATION”
so please suggest, what regex can I use to remove the text or characters from the string.
Thanks, Advance
AshwinS2
(Ashwin S)
January 27, 2020, 7:19am
2
Hi @Parthiban.VD
you can use matches activity based on regex expression as \d
and retrieve the string
Thanks
Ashwin S
1 Like
hey @Parthiban.VD use this expression to get any date format from above string \d{1,2}.\d{1,2}.\d{1,4}
cheers @Parthiban.VD
Chech this sample regex101: build, test, and debug regex
2 Likes
Parthiban.VD
(Parthiban Vaithilingam)
January 27, 2020, 7:30am
4
Pradeep_Shiv:
\d{1,2}.\d{1,2}.\d{1,4}
Hi,
Thanks for reply @Pradeep_Shiv , it’s working
Parthiban.VD
(Parthiban Vaithilingam)
January 27, 2020, 7:31am
5
Hi,
Thanks for your reply @AshwinS2
great mark it as a solution and close this thread!
1 Like
system
(system)
Closed
January 30, 2020, 7:32am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.