.ApplicationComposer/lib/webdof/valFormats.php
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;
   }
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;
   }
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 ; }
returns UUID version or FALSE if no UUID format
returns UUID version or FALSE if no UUID format