AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YDAT | YWAIT | Byzgraf | FAQs
regsub (String request, Subexp se) yoix.re
 
Returns the request string with any instances of a backslash-number sequence (i.e., \n, where n is the number of some sub-expression text within the Subexp object as determine by the invocation of regexec that created the Subexp object) replaced by the appropriate text from the information stored in se. One can use either n equal to 0 or an ampersand (&) in request to refer to the entire match made during the regexec call that created se. In the case where there are no reference to se with request, then a simple copy of request is returned.
 
 Return:  
 
 Example:   For usage examples, refer to the documentation for Subexp. String
 
 See Also:   gsubsti, gvsubsti, regexec, Regexp, regexp, Subexp, substi, vsubsti

 

Yoix is a registered trademark of AT&T Intellectual Property.