My case is extract number between text (ex: FL-number-$) from string in File names column to Check column. Example:
- 2022-06-09-FR-Echecks.pdf > Return ''
- 2022-06-09-FR-FL-3-$797.pdf > Return 3
- 2022-06-09-FR-TX-20-$35149.91.pdf > Return 20
My case as below
This code I used:
dt_test['File_names_page'] = dt_test['File names'].str.extract('\-([0-99])-\$')
It only return one digit number as below:
So how to extract all number (all digit) in my case?
Tks for all attention!