[Serusers] SER- search command

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Mon Jun 14 20:00:26 CEST 2004


On Jun 14, 2004 at 10:53, Gala, Dipen <Dipen.Gala at FMR.com> wrote:
> Has anyone used search command. If yes please provide me with the
> details on how can I use it or give an example...

Straight from modules/textops/README:

1.3.1. search(re)

   Searches for the re in the message.

   Meaning of the parameters is as follows:

     * re - Regular expression.

   Example 1-1. search usage
...
if ( search("[Ss][Ee][Rr]" ) { /*....*/ };

> Since whenever I am trying search command inside the "if" (as shown in
> admin guide) it gives me an error 

What kind of error? Do you load the textops module?

Andrei




More information about the sr-users mailing list