Argument | Description |
string1 | String. The string in which you want to find string2 |
string2 | String. The string you want to find in string1 |
start (optional) | Integer. A long indicating the position in bytes where the search will begin in string. The default is 1 |
Use the posw() or ph_pos() functions instead if the string you're searching contains greater than 32000 characters.
<html> |
This function is often used in conjunction with other string extraction functions to locate the "sweet spot" where an extraction should take place. For instance ...
posa("[LOCAL1]","Humidity")
will find the location of the "H" in the word Humidity in
the string, allowing, for instance,
a follow-on ph_regexsnap() to extract the data between the next <b> and </b> tags starting at that pos() located starting position.
This function is also very useful in conjunction with the lefta() function to trim data off the end of a large string so that only the content of interest is being used to avoid "greedy" searches from finding unexpected data.