Questions tagged as 'string'

3
answers

How to extract specific text from a string via JavaScript

Doubt related to how to remove only part of the text after my tags p: and r: I'm developing an application similar to chatbot simsimi and for testing purposes I'm storing the questions and answers in a var within the script. In...
asked by 29.04.2017 / 04:21
1
answer

Chained list of strings (vector of characters) in C

I'm doing a job for college, and it's basically about Hash table . At work, I have to do the hash table of a n strings, for example. Instead of doing an array of character arrays (in this case, an array of strings), I would like to implement...
asked by 25.04.2017 / 23:33
1
answer

What does the "$" symbol mean before a string?

Viewing a code here in SOpt, I noticed the use of the "$" symbol and I was not sure how to use it. What is the "$" symbol before a string ? What is it for? Why use it? Example using static System.Console; public class Program {...
asked by 07.10.2015 / 14:35
1
answer

String Equivalent Using Variables - Python 3.x

What would be the equivalent of the string: values = """ { "exchange_code": "PLNX", "exchange_market": "BTC/USDT" } """ What the result is:   \ n "\ n" \ n "\ n" \ n "\ n" \ n " Entering "PLNX" and "BTC / USDT" as variables,...
asked by 23.03.2017 / 21:40
1
answer

About String manipulation [closed]

I have a somewhat curious problem, maybe a challenge. I need to add to my database the list of all cities in Brazil, I found a SQL with all the way I need it, however, the name of the SQL table is with "quotation marks" as in the following ex...
asked by 22.02.2017 / 20:12
2
answers

MySQL - Search number in a string

DBMS: MySQL I have a table with a column of type Varchar, with the following data: id Descrição 1 Pgto NF 66096 Lg Sistemas vcto: 01/10/2016. 2 Pgto NF 66096 Lg Sistemas vcto: 01/10/2016. 3 Pgto NF 1763 Criare Net vcto: 02/10/20...
asked by 06.01.2017 / 19:19
1
answer

NMAP result using PHP - how to show the NMAP result in a table in the browser?

I'm trying to make the output of the nmap result appear in the browser in the form of a table. follow the code below: <?php $host = $_POST["host"]; $saida = shell_exec('nmap -P0 ' . $host); $vetorLinhas = explode("\n", $saida); echo "<pr...
asked by 20.11.2016 / 23:55
5
answers

Remove last comma from an array

In this code below I have an array that returns me a comma at the end  exe: '98602', '98603', '98604', How can I remove this comma? if (isset($_POST['checkbox'])) { foreach ($_POST['checkbox'] as $key => $value) { $id = mysql_re...
asked by 06.03.2015 / 16:09
2
answers

Divide vector according to delimiters and copy content to other strings in C

I need the main string "vector" to be traversed to the delimiter '=' and copy the previous values to '=' to 'second' and values after '=' to 'third'. Sure there is a smarter way to do this, but since I'm a beginner, I'm having a hard time figuri...
asked by 26.09.2016 / 06:51
5
answers

Remove last comma from an array

In this code below I have an array that returns me a comma at the end  exe: '98602', '98603', '98604', How can I remove this comma? if (isset($_POST['checkbox'])) { foreach ($_POST['checkbox'] as $key => $value) { $id = mysql_re...
asked by 06.03.2015 / 16:09