Does anyone know what character separates the entr...
# advancedpdf
d
Does anyone know what character separates the entries/lines inside of
item.inventorydetail
? Trying to use regex to perform a split, but none of
\n
,
$
, or
\s
seem to match it (continued with example in thread) I think I'm trying to be too clever with my regex pattern. Going to go have a more careful read over the variation of regex that FreeMarker uses: https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
basic example, using
?split(_regex)_
and
?item_cycle()
While
item.inventorydetail
would return this normally:
Copy code
inventorynumberA,binA(6)
inventorynumberB,binB(4)
using the above example code (with ?split) returns:
Copy code
Inv#: inventorynumberA
Bin#: binA
Qty: 6
inventorynumberB
Inv#: binA
Bin#: 4
So you can see
\n
,
$
and
\s
don't match between the first qty and second inventory number. Also
?split
seems to be picking up the
)
(it's getting removed), but isn't actually splitting it...
a
Pipe char?