Policy Number Parser
Policy Number Parser
EasyStrings100% accepted
Suresh works in claims at LIC in Bangalore. He needs to extract the policy number from claim reference codes to link claims to policies. Return the policy number as an integer (drop leading zeros — '000001' → 1).
Approach
Extract the 6-digit policy number from claim reference 'CLM-YYYY-PPPPPP-XXXXX' format.
Input
CLM-2024-847392-58493
Output
847392
More Strings problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards