I have the following string 2016-02-17 field and I would like to extract the 02 between the hyphens. Does someone have a regex that will do this?
Sure,
\d{4}-(?<month>\d{2})-\d{2}
Check out www.regex101.com It can help with building out/learning regular expressions.
Sure,
\d{4}-(?<month>\d{2})-\d{2}
Check out www.regex101.com It can help with building out/learning regular expressions.
is it this simple?
\-\d\d\-
\- = escapes the 1st hyphen
\d\d = 2 digits
\- = escapes the 2nd hyphen
-ALF
Thank you so much I think I messed up the regex command in the search field
I entered the string below in the search field:
rex mode=sed"\d{4}-(?\d{2})-\d{2}"