[Middle StartAfter=x&EndBefore=y]Any Text[/Middle]
- Extracts middle portion of the text between any two strings.
To display a subsection of some text, put the text inside a [Middle] context.
Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):
- [Middle StartAfter=<body>&EndBefore=</body>]
The example above returns "Hi There," which is the sequence of letters between "<body>" and "</body>." Extracting sub-portions of text like this is useful when you need to remove the HTML header information from a file (or web page) containing HTML that you want to include inside the body of a web page.
The following parameters are required in the [Middle] context:
|String of text characters to search for defining the beginning of the text to be returned. All preceding text (and the StartAfter text itself) will be ignored.
|String of text characters to search for defining the end of the text to be returned. All following text (and the EndBefore text itself) will be ignored.