阅读背景:

在字符结束前匹配任何字符串

来源:互联网 

I have a date which returns either "23-12-2010" or '2013-' I want to extract the valid year for 2013- ie. 2013 and valid date for 23-12-1010 i.e 23-12-2010. So I am trying to extract all the tring before last '-' if it is present.I have a date which returns either "23-12-2010"




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: