Forum Discussion

jfpelletier's avatar
jfpelletier
Contributor
11 months ago
Solved

Best way to perform multiple search and replace in a string?

Hello all, I sometimes have to do multiple search and replace operations on a string, and I'm wondering if there's a better way than using multiple ".replaceAll()" methods on that string? The patter...
  • j_angelevski's avatar
    4 years ago

    Hi @swright,

    You need to concatenate the jsonPath with the pipeline parameter.

    jsonPath($, "$entity.items[?(value.AssignmentNumber=='" + _AssignmentNumber + "')].links[*]").find(x=>x.name == "assignedPayrolls").href