original_string: public function getRegex()
      {
          switch ($this->decimalPoint) {
              case self::DECIMAL_COMMA:
                  $regex = '/^-?\d+(,\d+)?$/';
                  break;
  
              case self::DECIMAL_POINT_OR_COMMA:
                  $regex = '/^-?\d+((\.|,)\d+)?$/';
                  break;
  
              case self::DECIMAL_POINT:
              default:
                  $regex = '/^-?\d+(\.\d+)?$/';
                  break;
          }
  
          return $regex;
      }
code: public function getRegex()
      {
          switch ($this->decimalPoint) {
              case self::DECIMAL_COMMA:
                  $regex = '/^-?\d+(,\d+)?$/';
                  break;
  
              case self::DECIMAL_POINT_OR_COMMA:
                  $regex = '/^-?\d+((\.|,)\d+)?$/';
                  break;
  
              case self::DECIMAL_POINT:
              default:
                  $regex = '/^-?\d+(\.\d+)?$/';
                  break;
          }
  
          return $regex;
      }
code_tokens: public function getRegex ( ) { switch ( $ this -> decimalPoint ) { case self :: DECIMAL_COMMA : $ regex = '/^-?\d+(,\d+)?$/' ; break ; case self :: DECIMAL_POINT_OR_COMMA : $ regex = '/^-?\d+((\.|,)\d+)?$/' ; break ; case self :: DECIMAL_POINT : default : $ regex = '/^-?\d+(\.\d+)?$/' ; break ; } return $ regex ; }
docstring: Return the regex used for matching valid float
  
  @return string
docstring_tokens: Return the regex used for matching valid float