Top
Back: 5.1.34 files, input from
Forward: 5.1.36 finduni
FastBack: 5 Functions and system variables
FastForward: 6 Tricks and pitfalls
Up: 5.1 Functions
Top: 1 Preface
Contents: Table of Contents
Index: F Index
About: About This Document

5.1.35 find

Syntax:

find ( string_expression, substring_expression )
find ( string_expression, substring_expression, int_expression )

Type:

int

Purpose:

returns the first position of the substring in the string or 0 (if not found),
starts the search at the position given in the 3rd argument.

Example:
  find("Aac","a");
→ 2
  find("abab","a"+"b");
→ 1
  find("abab","a"+"b",2);
→ 3
  find("abab","ab",3);
→ 3
  find("0123","abcd");
→ 0

See string.


Top Back: 5.1.34 files, input from Forward: 5.1.36 finduni FastBack: 5 Functions and system variables FastForward: 6 Tricks and pitfalls Up: 5.1 Functions Top: 1 Preface Contents: Table of Contents Index: F Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.