next up previous contents
Next: Case Insensitive Search string Up: Searching Functions Previous: Searching for SGML Tags

Case Sensitive Search string

Calling Sequence:
CaseSearchString(pat, text)
pat : string
text : string

Returns: {-1, 0, posint}

Synopsis: This returns the offset before the character where pat matches with text. If pat does not match text, -1 is returned.


> CaseSearchString('here', 'It is in here');  # case sensitive, found
> CaseSearchString('it', 'It is in here');    # case sensitive, not found

See also: SearchString

Gaston Gonnet