sourceSearch and sourceExtract not working properly after last update

Those two commands are not working properly after last update to 5.7.5 both on Chrome and Edge. If i search for a pattern with regex it won’t give me all unique values but rather 1 value that includes all the html code between the start character of the regex until the end.

example string:
1 2 3 4 5 6 7 8 9 10 test one two
1 test one two

sourceExtract: 1 * two

result is only one:

2 3 4 5 6 7 8 9 10 test one two test one

I expected two results:

  • 2 3 4 5 6 7 8 9 10 test one
  • test one

the demoExtract macro also gives wrong results. For example the variable of “GA_OPTION1” is:

“UA-86195842-1’, ‘auto’);\n ga(‘send’, ‘pageview’);\n\n \n\n \n <script async="" src="https://www.googletagmanager.com/gtag/js?id=AW-866215991\”>\n \n\n<style type="text/css">.at-icon{fill:#fff;border:0}.at-icon-wrapper{display:inline-block;overflow:hidden}a .at-icon-wrapper{cursor:pointer}.at-rounded,.at-rounded-element .at-icon-wrapper{border-radius:12%}.at-circular,.at-circular-element .at-icon-wrapper{border-radius:50%}.addthis_32x32_style .at-icon{width:2pc;height:2pc}.addthis_24x24_style .at-icon{width:24px;height:24px}.addthis_20x20_style .at-icon{width:20px;height:20px}.addthis_16x16_style .at-…"

(can’t copy the whole code because of the forum restrictions)

Regression issue confirmed, thank you for reporting it! (Internal ticket 729)

Test text for testing the upcoming fix:

111 222 333 444 solar cell
111 333 555 cell biology

This macro will work after the next update:

{
  "Name": "nongreedymatch",
  "CreationDate": "2020-7-15",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://forum.ui.vision/t/sourcesearch-and-sourceextract-not-working-properly-after-last-update/5583",
      "Value": ""
    },
    {
      "Command": "sourceExtract",
      "Target": "111 * cell",
      "Value": "first"
    },
    {
      "Command": "sourceExtract",
      "Target": "111 * cell@2",
      "Value": "second"
    },
    {
      "Command": "echo",
      "Target": "First match: ${first}",
      "Value": "green"
    },
    {
      "Command": "echo",
      "Target": "2nd match: ${second}",
      "Value": "blue"
    }
  ]
}

Regression issue fixed with V5.8.8