About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/string_match.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 string_match Context: slangrtl

Synopsis

Match a string against a regular expression

Syntax

Integer_Type string_match(String_Type str, String_Type pat,
Integer_Type pos)

Description

The string_match function returns zero if str does not match regular expression specified by pat. This function performs the match starting at position pos (numbered from 1) in str. This function returns the position of the start of the match. To find the exact substring actually matched, use string_match_nth.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.