SimpleparseUtility Class Reference


Public Member Functions

 getPattern ($text, $pattern, $casesensitive=true)
 getPatterns ($text, $pattern, $casesensitive=true)

Detailed Description

Definition at line 15 of file simpleparseutility.php.


Member Function Documentation

getPattern ( text,
pattern,
casesensitive = true 
)

cut out a text depending on a searchpattern. example: text is "abcdefghij", searchpattern is "ab*fg", then result is "cde"

Parameters:
string $text text to search in
string $pattern pattern to search in text
Returns:
mixed false when nothing is found, otherwise an array with text-results

Definition at line 27 of file simpleparseutility.php.

Referenced by getPatterns().

Here is the caller graph for this function:

getPatterns ( text,
pattern,
casesensitive = true 
)

cut out text depending on pattern, multiple wildcards allowed example: text is "abcdefghij", searchpattern is "ab*fg*ij", then result is array("cde","h")

Parameters:
string $text text to search in
string $pattern pattern to search in text
Returns:
mixed false when nothing is found, otherwise an array with text-results

Definition at line 64 of file simpleparseutility.php.

References getPattern().

Here is the call graph for this function:


The documentation for this class was generated from the following file:

Generated on Mon Apr 27 16:29:08 2009 for kata by  doxygen 1.5.8