Trying to figure out the code to determine if the ( 3rd digit in a string is 0 ) or if the ( 3rd is 5 and the 4th is 6 ) and can't seem to find anything. Feels like a simple thing to do if I wasn't specifically looking for the specific character numbers/digits.
x <- c( "123456" , "124567" , "125600" )
How can I test the above example where the results will be FALSE FALSE TRUE?
Thanks in advance!