original_string: protected function _isuuidversion($in, $strict = true)
     {
  
       if(false !== $strict)
        {
        	  $in = strtolower($in );
        	  $alphanums = "a-f";	
        }else{
               $alphanums = "a-z";	
             }
  	 
  	 if(!preg_match("/^[0-9$alphanums]{8}-[0-9$alphanums]{4}-(?<version>[0-9$alphanums]{1})[0-9$alphanums]{3}-[0-9$alphanums]{4}-[0-9$alphanums]{12}$/i",$in, $matches) )return false;
  
       $version = $matches['version'];
       if(false !== $strict && (empty($version) || !$this->_isint($version) || intval($version)<1 ||  intval($version)> 6))return false;
  	
  	return $version;
     }
code: protected function _isuuidversion($in, $strict = true)
     {
  
       if(false !== $strict)
        {
        	  $in = strtolower($in );
        	  $alphanums = "a-f";	
        }else{
               $alphanums = "a-z";	
             }
  	 
  	 if(!preg_match("/^[0-9$alphanums]{8}-[0-9$alphanums]{4}-(?<version>[0-9$alphanums]{1})[0-9$alphanums]{3}-[0-9$alphanums]{4}-[0-9$alphanums]{12}$/i",$in, $matches) )return false;
  
       $version = $matches['version'];
       if(false !== $strict && (empty($version) || !$this->_isint($version) || intval($version)<1 ||  intval($version)> 6))return false;
  	
  	return $version;
     }
code_tokens: protected function _isuuidversion ( $ in , $ strict = true ) { if ( false !== $ strict ) { $ in = strtolower ( $ in ) ; $ alphanums = "a-f" ; } else { $ alphanums = "a-z" ; } if ( ! preg_match ( "/^[0-9$alphanums]{8}-[0-9$alphanums]{4}-(?<version>[0-9$alphanums]{1})[0-9$alphanums]{3}-[0-9$alphanums]{4}-[0-9$alphanums]{12}$/i" , $ in , $ matches ) ) return false ; $ version = $ matches [ 'version' ] ; if ( false !== $ strict && ( empty ( $ version ) || ! $ this -> _isint ( $ version ) || intval ( $ version ) < 1 || intval ( $ version ) > 6 ) ) return false ; return $ version ; }
docstring: returns UUID version or FALSE if no UUID format
docstring_tokens: returns UUID version or FALSE if no UUID format