Posts by Daniel Bertoldi • 97 points
6 posts
-
0
votes0
answers73
viewsQ: Call Curl inside while
I’m trying to file a requisition cURL for each line returned by a query in a database. The problem is that my program dies right after the first call cURL, and I have no idea why. Searching the…
-
0
votes1
answer49
viewsA: Regex checking if there is no character on a line
I got the solution, the Regex that checks if there are no two points after this pattern is: \d+/\d+\/\d+, \d+:\d+ -(?=[^:]+$)
-
2
votes1
answer49
viewsQ: Regex checking if there is no character on a line
I’m having trouble putting together a Regex that checks if there isn’t a character at any point in a row after a pattern. I have the following log: 3/9/18, 17:47 - Pessoa 1: Oi gente! 3/10/18, 22:59…
-
4
votes4
answers200
viewsQ: Find character succeeded by another character using Regex
I am trying to assemble a regular expression that can identify and correct an invalid JSON. What I am trying to do specifically is the following, using as an example the following JSON: { "array":…
-
-2
votes1
answer310
viewsQ: PHP - Convert string to int
I’m trying to convert the string '450,000.00' in int to insert into the database. But when I do cast or use intval(), the value returned goes to 450 only. In case I need the 450.000. How else could…
phpasked Daniel Bertoldi 97 -
2
votes1
answer335
viewsQ: Regex to filter words, as long as they are not contained in other words
I am trying to create a Regex that filters by certain words, to be used in the validation of the name entered by the user in a conversation with a chatbot. Since it’s about filtering out bad words,…
regexasked Daniel Bertoldi 97