Changeset 1579 for trunk/system/helpers/valid.php
- Timestamp:
- 12/17/2007 03:55:08 PM (13 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/valid.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/valid.php
r1449 r1579 330 330 } 331 331 332 /** 333 * Method: numeric 334 * Checks whether a string is a valid text 335 * 336 * Parameters: 337 * str - input string 338 * 339 * Returns: 340 * TRUE if string is a valid text, FALSE if not. 341 */ 342 public static function standard_text($str) 343 { 344 return preg_match('/^[-\pL\pN\pZs_]+$/uD', (string) $str); 345 } 346 332 347 } // End valid
