Open GoogleCodeExporter opened 9 years ago
Haven't had a chance to try this on the in-the-works software, but you might
try this Regex...
Following an idea from
http://stackoverflow.com/questions/863125/regular-expression-to-count-number-of-
commas-in-a-string
It may be less costly:
regex(${mwids},concat('(?:',${mwid},'.*){2}'))
Original comment by mitchellsundt@gmail.com
on 13 Mar 2014 at 4:39
Thanks for the tip (I didn't know about non-capturing groups before).
Unfortunately, with the current version, any saving isn't great enough to
prevent the crash.
Original comment by james.be...@gmail.com
on 21 Mar 2014 at 11:12
If your id values do not contain spaces, if you are creating a space-separated
string of values, you can use the selected() function to access the string (and
the count-selected() or selected-at() functions, too). These all work on string
fields, and expect a space-separated list of values (no leading or trailing
spaces).
Original comment by mitchellsundt@gmail.com
on 11 Jun 2014 at 8:29
Brilliant idea. Thank you.
Original comment by james.be...@gmail.com
on 16 Jun 2014 at 8:47
Original issue reported on code.google.com by
james.be...@gmail.com
on 12 Mar 2014 at 7:50Attachments: