GetEmail

Description

Extracts an e-mail address from the input.

Syntax

target.strlib.GetEmail( input, pos )

                    input: String to be parsed

pos: integer (optional, in/out) - search from position (default is 0)

Return value

The function returns a string

Sample


'---------- Start ----------

Function Start

Dim str, str2

str = "If you need help or have any questions contact us at                                  support@simx.com."

str2 = target.strlib.GetEmail( str )

     trg.Message( str2 )

End Function

In this case GetEmail parses the input string for substrings that match an e-mail address format and extracts them.

See also

Platform Objects and Methods

Trim

Split

Mid