I have this regular expression r'\b28\b'. In this expression 28 should be dynamic. In other words, 28 is a dynamic value which the user enters. So, instead of 28 it can have 5. In that case, the expression would be r'\b5\b'.
I tried the below two approaches but they are not working.
- r"r'\b" + room_number + r"\b'"
- "r'\b" + room_number + "\b'"
I want to know how can I do it? Can someone please help me with it?