Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
9 replies Latest Post - ‏2015-05-27T07:06:31Z by CognosAdmin
SystemAdmin
SystemAdmin
1959 Posts
ACCEPTED ANSWER

Pinned topic substitute macro pattern_string

‏2013-03-20T18:16:41Z |
the language describing the pattern_string hints at regex-like functionality:

Example 1

#sq ( substitute ( '^cn=', '***', 'cn=help' ) )#
Result: '***help'

however, whenever i try to use a regex to find a string to substitute i get this error:
QE-DEF-0396 The search_pattern '{my pattern}' argument to macro function 'substitute' is not valid

i'm trying to find the first instance of a square-bracketed string to rewrite a MUN. i'm trying the following:

#substitute('^[*]', 'my new cube', prompt('pMUN','mun'))#

any ideas why this isn't working?
Updated on 2013-04-03T20:21:24Z at 2013-04-03T20:21:24Z by SystemAdmin