I'm having trouble finding two patterns inside a string in java, given a string. For example:
String str = 021478345231402198408189472328090419790164437663021101996091789834401805198616773422110231220010017325545008091968040901876902511198100789089990090919991753135151210101987;
I know that every 11 digits is a cpf and every 8 digits after cpf is a date of birth.
I need to resolve this issue
Given a sequence file, with fixed-length records, containing CPF numbers (11 bytes) followed by birth dates (8 bytes). Identify:
How many records are there in the file? What is the position of the 3rd register? (Create a formula) List one record per line and separating the fields by
,
I can use the pattern to find x numbers, but I did not understand to find x and y standard.
I tried to use a substring(0,9)+",";
but he changed the last number to ,
.