Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
Hi, I have a string in DB which is: "<key>PROJECT_CODE</key><style>BOLD</style><color>#EF0010</color>"
and I want your help to split this into different variables, like after splitting the above string
var1 will have value = PROJECT_CODE,
var2 will have value = BOLD,
var3 will have value = #EF0010
Thanks in advance!
Discussion posts and replies are publicly visible
Try this.
a!forEach( items: split( "<key>PROJECT_CODE</key><style>BOLD</style><color>#EF0010</color>", "><" ), expression: striphtml( if( fv!isFirst, concat(fv!item,">"), fv!isLast, concat("<",fv!item), concat("<" ,fv!item,">") ) ) )
This one is more easier check this as well.
reject( fn!isnull, extract( "<key>PROJECT_CODE</key><style>BOLD</style><color>#EF0010</color>", ">", "<" ), )