Posts by Juliano • 172 points
8 posts
-
3
votes1
answer151
viewsQ: Split per point with exceptions
I have the following regex: (?!…
-
2
votes1
answer73
viewsQ: Regex in word XML
I have an xml that came from a docx in this format: <w:p w:rsidR="00AE2D8E" w:rsidRPr="00AE2D8E" w:rsidRDefault="00AE2D8E"> <w:pPr> <w:rPr> <w:lang w:val="en-US"/>…
-
1
votes0
answers81
viewsQ: Accent mysql table
Good morning. I have a table in the database and I need to make 2 selects in it: For the first search I’m using this and is returning everything I need: SELECT * FROM wp_memoria WHERE memo_de IN…
-
1
votes0
answers26
viewsQ: Problem with accented strings
I’m getting a string in an AJAX, however, if that string have an accent it doesn’t work as it should. $texto = $_REQUEST['texto_de']; $texto_escrito = 'AB Construções e Serviços'; if($texto ==…
-
0
votes1
answer762
viewsA: How to load php page using javascript (with GET method)?
You need to pass the php $category variable to javascript and then the parameters by load(). It would look something like this: <script type='text/javascript'> var cat = <?php echo $cat;…
-
6
votes4
answers409
viewsQ: Separate text by space except inside quotation marks
I’m trying to use a regex to separate the texts separated by space, except those inside quotes, for example: Entrada: texto1 texto2 "texto3 texto4" texto5 Saida: Array("texto1", "texto2", "texto3…
-
0
votes1
answer347
viewsQ: Read doc/docx content in javascript
You can send a doc/docx through a form and read its contents in javascript? I only care about the text that is written inside it, without images, formulas, etc.
-
2
votes1
answer717
viewsQ: Separating a paragraph by sentences
I need to break a paragraph into a set of sentences. For example: var paragrafo = "Sou Dr. José. Meu passatempo é assistir séries. Adoro animais!! E você?"; var frases = paragrafo.split('.') But he…