textbefore(
TEXT
,
TAG
)

The textbefore( function extracts the text before the tag.


Parameters

This function has two parameters:

text – the original text

tag – the separator character (or characters).


Description

This function extracts the text that appears before a specified tag. The tag many be one or more characters long. If the tag doesn’t occur in the text then the entire original string is returned.

textbefore("someone@anisp.net","@") ☞ someone

To extract text after a tag, use the textafter( function.

Note: This function is equivalent to:

thetext[1,-1+search(thetext,thetag)]

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.