Questions tagged [brackets]

Brackets are tall punctuation marks used in matched pairs within text, to set apart or interject other text. They have a variety of meanings in different programming languages. DO NOT USE THIS for the IDE, use [adobe-brackets] instead.

Brackets are tall punctuation marks used in matched pairs within text, to set apart or interject other text. They have a variety of meanings in different programming languages.

1033 questions
-1
votes
2 answers

How to access PHP values in array like ["val1","val2","val3"] in loop

I have a problem to get values from single square brackets array. Getting this //$_POST["values"] == ["val1","val2","val3"] $val = $_POST["values"]; I want something like: foreach( $val as $value ) { $valget = $value; //need to get all…
Zdenek Slavik
  • 142
  • 3
  • 13
-1
votes
1 answer

Gap between two html sections

As you can see in the pictures, i have those two gaps between those sections (white space). I tried doing the padding/margin : 0; method, but it didn't work. Any other possible solution? EDIT: The problem was margin between two…
AndreasDEV
  • 55
  • 1
  • 9
-1
votes
1 answer

how to print all the possible combination of a set of bracket and expession so that they can be evaluated later?

Below is a code snippet where brack is a set of brackets which are balanced and myExpression contains a logical operation may be having a | and & operator. Is there any way by which I can print all possible combination of bracket. /* // …
-1
votes
1 answer

Why do you need a specific syntax to insert data into postgresql

I have found a way to insert data into a postgresql database using php. Therefore, I used the following syntax: $sql = "INSERT INTO genes (id,gene,plasmid,accessionnumber,plasmidname) VALUES…
Nemo
  • 503
  • 6
  • 23
-1
votes
1 answer

can not save the curly brackets to database

I have a problem when trying to save data in the form of html code and some symbols on the laravel framework. this code that i want to save: {{ ... }} or {{ csrf_field() }} if I try to submit, the page becomes blank.
efata
  • 1
-1
votes
1 answer

Coloring specific elements in a string

I'm working on a code to color all the curly brackets from my input field (textt). I have no problem finding them using a for and if statement, but i cant seem to color them or even make them bold. This is what i have currently: function…
ITGuru
  • 115
  • 1
  • 12
-1
votes
1 answer

Entering an input within brackets

Is it possible in matlab to enter an input within brackets such as: Enter an input: [1 2 3 4 5 6 7 8] I tried everything and nothing works, must be exactly like that where the user input is entered in real time within brackets
-1
votes
1 answer

Bracket matching using tree structure in ruby

Given a string that contains only characters from the set {}[]() I want to generate a tree structure that starts with an opening bracket -- {[( -- and adds a node if the next character is another opening bracket. If the next character is a closing…
stevensonmt
  • 702
  • 1
  • 6
  • 19
-1
votes
1 answer

Query to check if sequence of brackets is valid

I'm trying to solve pretty complex problem with bracket sequence, only '(' and ')', actually I need to implement segment tree that in logarithmic time will check if sequence of brackets is valid or not. Valid sequence of bracket is a string that is…
someone12321
  • 755
  • 5
  • 24
-1
votes
1 answer

javascript regex brackets match won't work, it changes the regex pattern

I'm trying to use this regex pattern to match this value [1] When I use this regex: new RegExp("\\["+row+"\\]/g") it returns me this: /\[1\]\/g/ instead of this: /\[1\]/g I have tried many things but nothing works apparently. Some help would be…
Iason
  • 372
  • 1
  • 5
  • 20
-1
votes
1 answer

Components in Angular2

Sorry but I can't understand why my brackets tell me that cannot find these modules in my angular2 project. This is my app.module.ts file: import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser';…
Adrián
  • 19
  • 7
-1
votes
1 answer

Regex: Match everything except for content in the HTML tags

String: This is a random String which contains stuff. Result (replaced with 0s): 00000000000000000000000000000000000000stuff0 So I want…
-1
votes
1 answer

Confusion around bracketed objects [{"a":"b"}] and non-bracketed objects {"a":"b"} in PHP

I've had an AJAX result that get's json_encode($result); in PHP before being returned. Originally the data returned looked like this: [{"ID":"4066","post_title":"TATTOO SLEEVES"}] Note it has [ ] brackets!! Then I would parseJSON the data and work…
mesqueeb
  • 5,277
  • 5
  • 44
  • 77
-1
votes
1 answer

Information about piece of code concerning Brackets and Templates

This is a part of the code: tmp nu(const label patchi) const { return nu_.boundaryField()[patchi]; } I don't really understand the meaning of brackets after functions parentheses. Is this correct syntax and what…
-1
votes
1 answer

How to parse the brackets in Java?

I need to write method which takes expression like this: 1 + 2 ) * 3 - 4 ) * 5 - 6 ) ) ), and then to output String result like this ( ( 1 + 2 ) * ( ( 3 - 4 ) * ( 5 - 6 ) ) ). Sorry for my english, it's not my native language. I used stack in this…
komax93
  • 61
  • 7