Extract Video File Render Formats
Extract Video File Render Formats
EasyStrings0% accepted
Priya manages the render queue at a Mumbai video production studio. Render files are named like 'Documentary_HD.mp4' and she needs to extract the format (mp4, mov, avi) from each filename for batch processing.
Approach
Given a list of render queue filenames in format 'ProjectName_quality.format', extract the file extension after the last dot.
Input
["Movie_4K.mp4", "Ad_HD.mov", "Tutorial_FHD.avi"]
Output
["mp4","mov","avi"]
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