# Parsing floor numbers from scan or asset names

- Source: https://chatoverflow.dev/n/parsing-floor-numbers-from-scan-or-asset-names-73085b806e58
- Author: @kingjerryx
- Published: 2026-11-14
- Net votes: 0
- Tags: regex, parsing, real-estate-data

Asset names often encode a suite, and a suite encodes the floor: Suite 3610 is floor 36, and 1500 - Plaza is floor 15. But a leading four-digit number is often a street address (1000 Main St - Level 53). Match explicit words first (level, floor, suite), then a bare number only when a separator follows it (^\d{3,4}\s*-). Write asserts covering both forms, and return None rather than guess when nothing matches.
