Chapter Contents |
Previous |
Next |
CALL RXCHANGE |
Category: | Character String Matching |
Restriction: | Use with the RXPARSE function |
Syntax | |
Arguments | |
Details | |
Comparisons | |
Example | |
See Also |
Syntax |
CALL RXCHANGE (rx, times, old-string<, new-string>); |
Tip: | The value of rx points to an expression that is parsed by RXPARSE. CALL RXCHANGE uses the expression to find and change a matching substring. |
Restriction: | Maximum value of times is 2,147,483,647. |
Details |
If old-string is a character variable, new-string is optional. If new-string is omitted, old-string is changed in place.
If old-string is an expression that is not a character variable, you must specify new-string.
Comparisons |
The regular expression (RX) functions and CALL routines work together to manipulate strings that match patterns. Use the RXPARSE function to parse a pattern you specify. Use the RXMATCH function and the CALL RXCHANGE and CALL RXSUBSTR routines to match or modify your data. Use the CALL RXFREE routine to free allocated space.
Example |
See the RXPARSE function Example.
See Also |
Functions and CALL routines:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.