Posts by Jairo Correa • 196 points
3 posts
-
2
votes1
answer1368
viewsA: How to search a snippet in a PDF remotely?
The library http://www.pdfparser.org/ allows you to pick up text from PDF files. $url = 'http://www.bu.ufsc.br/ArtigoCientifico.pdf'; $nome = 'João'; $parser = new \Smalot\PdfParser\Parser(); $pdf =…
-
1
votes1
answer62
viewsA: Involve similar tags
This can be done by separating tags <li> in an array with two dimensions and then join them by adding the tag <ol> when necessary. To separate them you can use the function…
-
2
votes2
answers220
viewsA: preg_replace with Regex to add a tag
preg_replace('/(<p>[a-z]\).*<\/p>\s*<\/li>)/', '$1'."\n</ol>", $documento); Explaining: In the function preg_replace the first parameter is the regex that must start and end…