Posts by Bianca Lodoli • 11 points
1 post
-
1
votes2
answers310
viewsA: Regular expression to get number between two bars
The code below does what you need #!/usr/bin/env python3 import re url = 'https://www.site.com.br/categoria-produto/category/page/67/?gclid=Cjkdksjkcm35522' re_numbers = r'\/(\d+)(?=\/)' numbers =…