Hi all,
How can I make a record-selection, based on a part of a data-field? Suppose that I have 5 records in which this data-field contains the following strings:
"top-level/sub-level/third-level"
"another_level/level2/dummy1"
"yet-another_level/level3/dummy-level"
"again-another_level/level2/dummy2"
"level1/level2/level3/level4/level5"
and I want to list the number of records which have the same string between the first 2 "/" characters?
So: for the above I would like to get:
sub-level 1
level2 3
level3 1
This seems like fairly basic regex-filtering. I know how to do this is shell-scripting, c, perl. I do not know how to do this in Impromptu.
KS.
How can I make a record-selection, based on a part of a data-field? Suppose that I have 5 records in which this data-field contains the following strings:
"top-level/sub-level/third-level"
"another_level/level2/dummy1"
"yet-another_level/level3/dummy-level"
"again-another_level/level2/dummy2"
"level1/level2/level3/level4/level5"
and I want to list the number of records which have the same string between the first 2 "/" characters?
So: for the above I would like to get:
sub-level 1
level2 3
level3 1
This seems like fairly basic regex-filtering. I know how to do this is shell-scripting, c, perl. I do not know how to do this in Impromptu.
KS.