I need to get the IDs of particular segments in the URL, shown in bold (i.e. segments 2, 3 and 4):
/grid/strategic/corporate/uk/jim/tweets
They could also look like this (i.e. no category has been set):
/grid/-/-/-/jim/tweets
I'm assuming I would need a regex pattern match to do this and then use the {segment_category_ids} tag to pull them out in a list such as 37&342.
Not entirely sure how I should go about writing that for the settings though. I tried this:
^/[a-z-_0-9]*/[a-z-_0-9]*/[a-z-_0-9]*/[a-z-_0-9]*
Which works OK in a regexp checker but the I find that the tag {segment_category_ids} doesn't get rendered in the template.
How should I be providing this in the settings?