original_string: protected function _localesPattern()
      {
          $cacheKey = '_localesPattern';
          $cache = static::cache($cacheKey);
          if ($cache) {
              return $cache;
          }
  
          $pattern = '(' . implode(
              '|',
              array_map(
                  'preg_quote',
                  array_keys(
                      quickapps('languages')
                  )
              )
          ) . ')';
  
          return static::cache($cacheKey, $pattern);
      }
code: protected function _localesPattern()
      {
          $cacheKey = '_localesPattern';
          $cache = static::cache($cacheKey);
          if ($cache) {
              return $cache;
          }
  
          $pattern = '(' . implode(
              '|',
              array_map(
                  'preg_quote',
                  array_keys(
                      quickapps('languages')
                  )
              )
          ) . ')';
  
          return static::cache($cacheKey, $pattern);
      }
code_tokens: protected function _localesPattern ( ) { $ cacheKey = '_localesPattern' ; $ cache = static :: cache ( $ cacheKey ) ; if ( $ cache ) { return $ cache ; } $ pattern = '(' . implode ( '|' , array_map ( 'preg_quote' , array_keys ( quickapps ( 'languages' ) ) ) ) . ')' ; return static :: cache ( $ cacheKey , $ pattern ) ; }
docstring: Returns a regular expression that is used to verify if an URL starts
  or not with a language prefix.
  
  ## Example:
  
  ```
  (en\-us|fr|es|it)
  ```
  
  @return string
docstring_tokens: Returns a regular expression that is used to verify if an URL starts or not with a language prefix .