Skip to content
Advertisement

Tag: findall

What would be the regex pattern for the following?

I have multiple regex strings in format:- Example: A=’AB.224-QW-2018′ B=’AB.876-5-LS-2018′ C=’AB.26-LS-18′ D=’AB-123-6-LS-2017′ E=’IA-Mb-22L-AB.224-QW-2018-IA-Mb-22L’ F=’ZX-ss-12L-AB-123-6-LS-2017-BC-22′ G=’AB.224-2018′ H=”AB.224/QW/2018′ I=”AB/224/2018′ J=’AB-10-HDB-231-NCLT-1-2017 AD-42-HH-2019′ K=”AB-1-HDB-NCLT-1-2016 AD-42-HH-2020′ L=’AB-1-HDB-NCLT-1-2016/(AD-42-HH-2020) I want a regex pattern to get the output for the numbers that occur after the alphabets(that appear at the start) as well as the first alphabets. And at last years that are mentioned at last. There are

Beautiful Soup findAll() finds half of them

I’m trying to scrape information on the price of offices in France and I successfully developed the code to scrape all the information I needed. Though, I quickly noticed that something was wrong with the number of outputs and more precisely that my algorithm was returning only half of the occurences present on each page of the website. Here’s how

Advertisement