I would like to extract specific type of text from string.
Luxyry 2 bedroom apartment
Deluxe apartment 2 bedroom
Super luxyry 3 bedroom apartment
1 Bedroom studio apartment
This is the text I have and I want to extract 1 Bedroom or 2 bedroom or 3 bedroom from the text.
The pattern will be the same like {no_of_bedroom} bedroom.
How to extract this in python ?