hello everyone,
i have a question about "Blank Character" display in multivalue field
i use a "rex" to extract many fields ,
| rex "\n(?P[1-9\s])\s*(?P[12])\s*(?P\S*)\s" max_match=0
in field1 , it could be 1-9 OR \s
(blank)
when i table this field , the \s
disappeared
for some reason , i want to reserve the "blank"
Does anyone have any suggestions ?
thanky you very much
This regex is pretty confusing to me. You have ?P but no name for the capturing group. Is there a purpose for the presence of the ?P at the start of each group? Perhaps our unhelpful markdown interpreter ate the <fieldname> component.
In any event, there are several scenarios in which the visual display of an empty-space value of a field will not be satisfying. Are you sure the field is not present? Try putting a character on the end of each value to test, such as with |eval myfield=myfield . "x"