Extract Patient Names from CT Reports
Extract Patient Names from CT Reports
EasyStrings0% accepted
A hospital in Pune generates CT scan reports where patient information is encoded in brackets. A report like 'REPORT[ARJUN_SHARMA]' contains the patient's name inside brackets. Extract all patient names for the hospital's database system.
Approach
Given a report string with patient names enclosed in [brackets], extract all names between brackets.
Input
REPORT[ARJUN_SHARMA]
Output
ARJUN_SHARMA
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