53527/how-to-write-a-regular-expression-in-python
The following code should be able to do it. This will capture only 999 from the tag.
a = "Your number is <b>999</b>" import re m = re.search(r"\d+", a) m.group()
abc_pqr_0_114_004.xxx ab_pq_04_114.xxx READ MORE
x="malayalam" y="" for i in x: ...READ MORE
Hi. Good question! Well, just like what ...READ MORE
$ to match the end of the ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
If you are using Ubuntu then the ...READ MORE
If you are using Python 3.x then ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.