Simone
02/01/2023, 1:07 PMdavla
02/01/2023, 1:14 PMSimone
02/01/2023, 1:18 PMdavla
02/01/2023, 1:21 PMREReplace(param,"required='(yes|no)'","default=''");
notice the addition of the ‘=’ after required and the quotes around the (yes|no).Simone
02/01/2023, 1:43 PMdavla
02/01/2023, 1:47 PMSimone
02/01/2023, 1:48 PM<cfset x = '<cfparam name="holidayID" type="numeric" required="yes">'>
<cfoutput>
#reReplace(x, 'required="(yes|no)"', "default=''", "ALL")#
</cfoutput>davla
02/01/2023, 1:54 PMSimone
02/01/2023, 2:05 PMdavla
02/01/2023, 2:13 PMSimone
02/01/2023, 2:39 PMSimone
02/01/2023, 2:39 PMdavla
02/01/2023, 2:40 PMSimone
02/01/2023, 2:43 PMAdam Cameron
Adam Cameron
davla
02/01/2023, 3:02 PM