Extract position number from an HTML element ID string.
HTML element ID containing position information (e.g., "ID-3-42")
Position number extracted from the ID, or -1 if undefined/invalid
Extract position number from an HTML element ID string.