Test, validate and match regular expressions
This regex matches structured flight or air segment data, typically starting with a positive integer followed by a dot (e.g., '1.'). It captures uppercase text, an optional slash, and a final segment of text. Due to the case-insensitive flag, it handles letters flexibly, making it useful for parsing airline reservation formats. Note that the final character class `[^(INF)]` matches any character except those inside the brackets, rather than excluding the exact string as a lookahead would.