Hello All,
Does anyone have an example of their own replacement strings script they would be able to share. In my example i have a range of pager messages which have four letter codes at the end which signify which brigades are turning out, what i would like to do is be able to have a list (within the script) so i can feed into the script the devicestring (e2 for example) it would then look for any four letter code with a C in front of it, compare that to the list within the script, and output the full name.
For example:
@@ALERT Fxxxxxxxxx TOOM1 STRUC1 HOUSE FIRE x address ST Suburb /Cross St 1 ST //Cross St 2 ST SVSE 8560 J5 (357750) CTOOM CPKHM [NEWB]
In the example above, it would search and find CTOOM, and CPKHM which would mean the four letter codes are CTOOM, and CPKHM, within the script there would be something like below:
TOOM: Toomuc
PKHM: Pakenham
OFFI: Officer
BEUP: Beaconsfield Upper
NAWE: Narre Warren East
CLEM: Clematis
And the script would output for the above example Toomuc, Pakenham. The thing that makes things a little tricky is that sometimes there might be only one code CTOOM, or other times there could be lots (up to say 10), but they are always between the (xxxxxx) and [xxxx] points.
Thanks for suggestions, and or help
Does anyone have an example of their own replacement strings script they would be able to share. In my example i have a range of pager messages which have four letter codes at the end which signify which brigades are turning out, what i would like to do is be able to have a list (within the script) so i can feed into the script the devicestring (e2 for example) it would then look for any four letter code with a C in front of it, compare that to the list within the script, and output the full name.
For example:
@@ALERT Fxxxxxxxxx TOOM1 STRUC1 HOUSE FIRE x address ST Suburb /Cross St 1 ST //Cross St 2 ST SVSE 8560 J5 (357750) CTOOM CPKHM [NEWB]
In the example above, it would search and find CTOOM, and CPKHM which would mean the four letter codes are CTOOM, and CPKHM, within the script there would be something like below:
TOOM: Toomuc
PKHM: Pakenham
OFFI: Officer
BEUP: Beaconsfield Upper
NAWE: Narre Warren East
CLEM: Clematis
And the script would output for the above example Toomuc, Pakenham. The thing that makes things a little tricky is that sometimes there might be only one code CTOOM, or other times there could be lots (up to say 10), but they are always between the (xxxxxx) and [xxxx] points.
Thanks for suggestions, and or help

Comment