0
Asset hierarchy definition help
Forum / Questions & Answers
I have a dataset populated by a CSV collector and I am trying to create a virtual view to put the tags into an asset hierarchy. The tag names are of the form
CsvTag.<site>.<equipment><measure>
where
- <site> is a 4-digit number
- <equipment> is a 2 digit number
- <measure> is a 2 digit number
I want a hierarchy that looks like this:
- My company
- Site-0001
- Equipment-01
- Measure-01
- Measure-02
- ...
- Equipment-02
- ...
- Equipment-01
- Site-0002
- ...
- Site-0001
but I don't really understand how the regex's need to be constructed
Can anyone help?
5 replies
-
Is there a good tutorial on the regular expressions needed for creating virtual views? I'm not found much in the Canary resources but it could be that I'm not looking in the right place.