Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find Date as Regexp
#1
I need to find a date in the form dd/mm/20yy in a string. The following code works. I wonder whether there exists something better - more elegant. Many thanks in advance.

Function tempf10
Code:
Copy      Help
,
str sl="WEIKS (E.4223/2013)     IZ DDY     2016     28/08/2016 TamTzu"
str ss

int i=findrx(sl "\d\d[/]\d\d[/]\Q20\E\d\d" 0 0 ss)
if(i>=0) out ss


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)