Need to Add new property to all the labels expect the label name not starts like 'AL_'

I am a newbie to Neo4j. Tried below code


WITH DISTINCT labels(n) AS label

UNWIND label AS names

WITH names AS candidate

WHERE candidate =~ '^(.?$|[^I].+|I[^A].)'

CALL apoc.create.setProperty(labels(candidate),'link','')

YIELD node

return node

Only nodes and edges have properties.
One or more Labels can be applied to a node.

Are you trying to add a new property to all the nodes that have a label starting with AL_?