Questions tagged [multilinestring]

236 questions
1
vote
2 answers

Space behind a backslash in a multiline string breaks the JavaScript code execution

Chrome version: Version 57.0.2987.110 (64-bit) This is the error i get: "Uncaught SyntaxError: Invalid or unexpected token". This is the code: var x = "\ "; If i remove the space behind the backslash, everything works fine. Why does this happen?
tedi
  • 6,350
  • 5
  • 52
  • 67
1
vote
0 answers

Distinguishing multiline strings that need indentation from those that do not

---+ BRIEF This question is about indenting multiline strings, e.g. for Perl, in emacs' cperl-mode, so that they do not break up the flow of the code. I know how to get the indentation I want, using transformations like =~ s/^[^\S\n]*\|//mhr on the…
Krazy Glew
  • 7,210
  • 2
  • 49
  • 62
1
vote
0 answers

Offset curves from Linestring to Polygon using PostGIS/PostgreSQL

I have street (linestring) and building (polygon) tables in my PostgreSQL 9.5 database (PostGIS 2.2) on Windows 7 (x64) machine like this. I am trying to compute the width of street by drawing offset curves around street. The idea is to draw…
khajlk
  • 791
  • 1
  • 12
  • 32
1
vote
1 answer

OpenLayer: How to create Features from WKT (Linestring)

I am very new to using OpenLayers and new to mapping. I am trying to create a simple map that is getting data from a postgresSQL. The data is then returned into a textarea (Linestring ........). I want to use the result to draw a line on the map.…
Kunle
  • 63
  • 11
1
vote
1 answer

Openlayers 3 - Multilinestring Zoom-in/out flashing layer

I'm trying to plot two linestring (WKT) on openlayers 3. When zoom (in or out) the layers are flashing and some times show or hide. Do some one know what is going on? Thanks The code is: var rasterLayer = new ol.layer.Tile({ source: new…
Marcos Oto
  • 75
  • 1
  • 8
1
vote
1 answer

Python multiline regex delimiter

Having this multiline variable: raw = ''' CONTENT = ALL TABLES = TEST.RAW_1 , TEST.RAW_2 , TEST.RAW_3 , TEST.RAW_4 PARALLEL = 4 ''' The structure is always TAG = CONTENT, both strings are NOT fixed and CONTENT could contain…
Juan Diego Godoy Robles
  • 14,447
  • 2
  • 38
  • 52
1
vote
3 answers

Regex Pattern to Extract Email Data

I'm retrieving raw text (includes header, and message) from a POP server. I need to capture everything after the header which is terminated by a blank line between it and the user message. At the same time I'm wanting to ignore anything from…
Jeff LaFay
  • 12,882
  • 13
  • 71
  • 101
1
vote
2 answers

Print multi-line strings on same line

what the title says. I have a dice program, and it prints a dice IE ------ | | | | | 1| ------ I want to be able to print multiple dice, so it looks like this: ------ ------ | | | | | | | | | 1| | …
XXX
  • 573
  • 2
  • 7
  • 16
1
vote
3 answers

Why multiline string have such strange syntax? ( when they do )

Probably is something really simple that I'm missing, but what's wrong with having a string going in multiple lines? For instance, Ruby is: text = <
OscarRyz
  • 196,001
  • 113
  • 385
  • 569
1
vote
1 answer

How can I parse objects with multiline strings in ES6?

I'm using Node.js v4.2.2 with ES6. I read a file that represents an object containing multiline strings. My file looks like: {"a":`b c`}; I read the file into a string: var fs = require ('fs'); var my_string =…
Gabriel Furstenheim
  • 2,969
  • 30
  • 27
1
vote
1 answer

Regular expression for multiple lines in MVC Model attribute

Uhg ... I suck at regular expressions. I'm trying to write a regex that will match one or more valid Guids in .NET, separated by new-line characters, for use in an MVC model. Here is the model property, as I have it…
campbelt
  • 1,573
  • 5
  • 27
  • 43
1
vote
1 answer

Editor not considering MultilineStringEditor as a unique editor

I have the following property: [Editor("System.ComponentModel.Design.MultilineStringEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0,…
Gbps
  • 857
  • 2
  • 14
  • 29
1
vote
2 answers

Partitioning multiline string in python

I'm running a unix command using python script, I'm storing its output (multi-line) in a string variable. Now I have to make 3 files using that multi-line string by partitioning it into three parts (Delimited by a pattern End---End). This is what my…
Bad_Coder
  • 1,019
  • 1
  • 20
  • 38
1
vote
2 answers

geting a multiline text with scanner class in java

In a part of my university project I have to get a text with some lines then saving it in a string or a string array.My problem is that in scanner class using methods gets only one line of the input. So I cannot get the other lines.please help…
Kasra Ghavami
  • 15
  • 1
  • 1
  • 6
1
vote
1 answer

How to store each line of a multi-line text into mysql individually

I am a beginner to php and mysql ,so bear with me if my question sounds dumb. I have a multi-line text and I need to store each line of that into a row of my table in mysql. I should mention that each line's string is separated by comma (",") as…
Omid
  • 260
  • 1
  • 2
  • 11