Most voted "match" questions
11 questions
Sort by count of
-
3
votes0
answers79
viewsComplete expression
Well, I have something like this: /^perfil[\/]?([0-9]{3})?[\/]?([a-z]{4,5})?[\/]?/i And I need to create a function that by receiving the right information turns this into perfil/431/abcd/…
-
3
votes2
answers117
viewsString match does not work with 1 character
I have the following obstacle: var myString = "c/q/1"; var match = myString.match(/c\/q\/([a-zA-Z0-9-].+)/); However match returns as null, already in the following example: var myString =…
-
2
votes1
answer932
viewsHow to set variable within match method (String)
What I want is to include the variable within the (/.../) and not its value. Code: var str = 'Seu texto aqui!'; if (str.match(/texto/)) { alert('Palavra encontrada.'); } Instead of setting manually,…
-
2
votes2
answers220
viewsRegex: Open and close with the same character and allow more than one type
It is possible to get a text between two characters that are equal, with the following conditions: The opening character shall be the same as the closing character. Allow more than one character…
-
2
votes2
answers348
viewsMatch in regular expression with special REGEX symbols and line breaks
I need help with a regular expression match in a string whose: beginning and end of a line with the character } keep marrying everything you find in the next line (including other "escaped"…
-
1
votes1
answer49
viewsExtract attributes from a dataframe using the points of a second dataframe
Greetings. I’m trying to extract information from biomes from a dataframe (biomes_df), which has columns of temperature and precipitation. I want to use these values to extract which biomes the…
-
0
votes1
answer114
viewsSort query by Mysqli relevance
how the query below could be ordered by relevance and then by date? $query = $mysqli->prepare( "SELECT `id`, `titulo`, `foto`, `descricao`, `slug`, `data`, '' as `local` FROM `noticias` WHERE…
-
-1
votes1
answer56
viewsHow to take specific values and sets in JSON
I have the following JSON { "navigator.zoom.in": "Zoom +", "navigator.zoom.out": "Zoom -", "badge_name_BR263": "GAMES 6!", "badge_name_BR264": "4Anos", "badge_name_X2046": "Cabana Aconchegante",…
-
-3
votes2
answers59
viewsCan you take out the word "null" and just type on the screen "word not found" ? (using match)
That’s what I tried to do, but keeps showing up: class 46 of the javascript course null Word not found <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8">…
-
-4
votes1
answer136
viewsGo inside another For
Guys I’m needing to run a for inside another for but I’m not getting it. I need to store the result value within a variable. I’m not familiar with python, I believe this is the biggest problem.…
-
-4
votes0
answers29
viewsIn Bigquerym, how to find a text in a column based on another table and column
I made the example below with a blocklist table (where I have all the words that cannot appear in a product description). The product table, where I want to find these blocklist words in the product…