catull
catull
Sorry to be a nag, can you give us a challenging example ? Are you talking about a URL that contains any one of these characters: - '*' - '(',...
How about this. input ```json { "body": "" } ``` You have different image tags ``` ``` Here's the transformation: ``` [ for (split (.body, "
How did I come to this solution ? I first only used this ``` split (.body, "", "src=\"image2\">", "src=\"image3\" />", "src=\"image4\"/>", "src=\"^&*image5\"/>" ] ``` As you can see, the first...
First of all, your input is not properly formatted; you should get plenty of errors in the sandbox alone. You are not properly escaping the double quotes in the `body`...
We are all here to learn from each other.
I created a PR, see #350.
You make an assumption that the function [`capture`](https://github.com/schibsted/jslt/blob/master/functions.md#captureinput-regexp---object) works in a way, that is not documented. How is JSLT supposed to know that more than 1 URL appears in the...
I see your points, regarding `capture()`. Until we have a `capture-all()`, you have to use what's there. Whether implementing a recursive function, or restructuring the input, neither is elegant. Not...
Found another solution, without having to change the input: ``` [ for (split (.body, "")) capture (., "
Try this one: ``` [ for (split (.body, "