Home / Expert Answers / Computer Science / 1-nbsp-implement-a-function-using-regular-expressions-that-tests-whether-a-string-represents-a-cpf-pa297

(Solved): 1- Implement a function using regular expressions that tests whether a string represents a CPF ...



1- Implement a function using regular expressions that tests whether a string represents a CPF in the correct format. Show examples.

2- Implement a fun c ao using regular express oes that you find all URLs in one string. Show examples.

3- Consider the following example book reference in APA citation format:

Manning, C. D., Manning, C. D., & Schutze, H. (1999). Fundamentals of statistical natural language processing. MIT press.

Implement a diversion that uses regular express oes that extracts each author, year of publication, t, publisher of the book, for any reference
book in this format.

4- Implement a function using regular express oes that finds and replaces all dates dd/mm/yyyy or mm-dd-yy Show
example.

5- Determine the distribution of text lengths (in quantity of characters), listing these quantities and plotting a histogram.



We have an Answer from Expert

View Expert Answer

Expert Answer


1. The CPF should have 11 digits, no more and no less. The initial 9 digits should be somewhere in the range of 0 and 9. The last 2 digits should be somewhere in the range of 0 and 9, and they should be the consequence of the activity (initial 9 digi
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe