Posts by Guilherme Lautert • 15,097 points
356 posts
-
1
votes3
answers851
viewsA: Regular expression to find word exception
With the help of the reference provided by jsantos1991. And the test site http://regex101.com/ Using ER on ER. I arrived at the result: (?!function (index|edit|busca))(function…
regexanswered Guilherme Lautert 15,097 -
3
votes3
answers851
viewsQ: Regular expression to find word exception
I’m looking for a certain recursive function which I can’t remember the name of. For this I set up the following ER: function (\w+)\([\x00-\xFF]+\1\( That will necessarily search for all functions…
regexasked Guilherme Lautert 15,097 -
3
votes1
answer426
viewsQ: Concatenate string with int in printf
It is possible to do this in C: int MAX = 30; printf("\n| %".MAX."s | %8s | %8s |", "Nome", "Salario", "Idade"); printf("\n| %".MAX."s | %8.2f | %8d |", pessoa[i].nome, pessoa[i].salario,…
-
0
votes4
answers853
viewsA: Click event only works the first time
Pedro Vinícius, Try jQuery 1.7.2 with . live <script type="text/javascript"> $(document).ready(function(){ $('.featured .client').live("click", function(e){ e.preventDefault();…
-
1
votes6
answers261
viewsA: Parser Bbcode ignore what is inside [code]
Daniel, I don’t know if I know what you need right now, but try: $str = "texte 1 [code] texte code [/code] texte 2"; preg_match('/(?<=\[code\]).*(?=\[\/code\])/', $str, $match); $strCode =…
-
0
votes1
answer911
viewsQ: PHP + POSTGRESQL (Begin, Commit, Rollback)
In my application I have a certain process to perform test. This involves database with multi tables. I wonder if it is possible to start a BEGIN; make all manual development, and in case of error,…