A5_EXTRACT_ADVANCE Function
Syntax
Arguments
- Result_String
The data found between Start_String and End_String.
- string
The data to process. Character
- Start_string
The text that bounds Result_String on the left. Character
- End_string
The text that bounds Result_String on the right. Character
- include_tags
Optional. Default = .F. ; .F. = Does not return the Start_String and End_String, .T. = Returns the Start_String and End_String. Logical
- case_sensitive
Logical. Optional. Default = .F., .F. = The search for Start_String and End_String is not case sensitive, .T. = The search for Start_String and End_String is case sensitive.
Description
Extracts the first occurrences of a sub-string starting with 'start_string' and ending with 'end_string'.
Discussion
The A5_EXTRACT_ADVANCE() function will find and return the text between two character strings, optionally including the two character strings.
Example
? a5_extract_advance("this is a string with several words", "string", "several", .f., .f.) = " with "
See Also