Questions tagged [multilinestring]

236 questions
0
votes
3 answers

Parsing colon delimited data

I have the following text chunk: string = """ apples: 20 oranges: 30 ripe: yes farmers: elmer fudd lives in tv farmer ted lives close farmer bill …
fr00z1
  • 519
  • 5
  • 16
0
votes
1 answer

Extract Json php MultilineString coordinates from Mysql

How do I insert and extract the following from a MySQL database using php. I have tried 'Multiploygon, Multilinestring, GeometryCollection' but cannot get the correct output as below. 1) JSON file to insert { "type":…
0
votes
2 answers

handle textarea strings in java

How to handle a multi line textarea string in java. Here example of my strings: eg 1: !1234 //here after !1234 there is some white space ADFGKLJUYGHH eg 2: !123455//here after!1234555 there is no space ASDFGERTYUJDCVBNMFGH I know how to handle…
saitds
  • 3
  • 1
  • 6
0
votes
1 answer

Where to add the word wrap for this php snippet?

if ($cboxes = $dbi->query($vbox_result, 0)) { foreach ($cboxes as $video) { $title = stripslashes ($video["title"]); $wordWrappedTitle = wordwrap($title, 25, "\n"); $full_title = stripslashes(str_replace("\"",…
0
votes
1 answer

Python Regular Expression matching multiple lines (re.DOTALL)

I'm trying to parse a string with multiple lines. Suppose it is: text = ''' Section1 stuff belonging to section1 stuff belonging to section1 stuff belonging to section1 Section2 stuff belonging to section2 stuff belonging to section2 stuff belonging…
user2221323
  • 493
  • 6
  • 15
0
votes
2 answers

Regular expression to convert/normalize multiline string to single string

The input is a multi-line string such as this: table { border:0; border-spacing:0; border-collapse:collapse; margin-left:auto; // 'align:center' equivalent margin-right:auto; } The output is a…
Scavokovich
  • 89
  • 2
  • 9
0
votes
2 answers

Chaining smarty templates and clean multiline strings - PHP

I know that the first part of this is subjective, but I'd like to hear some different techniques people use. This is a two part question: what do you use for complex multiline strings in PHP? And, can I use a composition type of relationship with…
grasingerm
  • 1,955
  • 2
  • 19
  • 22
-1
votes
1 answer

Is there something specific for using re.search() to match multiline pattern within a function? Python

I'm trying to search r'CONTENTS\.\n+CHAPTER I\.' within a string from Gutenberg project, but I'm getting AttributeError, as it doesn't match, but the same pattern does match outside the function. My code is below: def gutenberg(url): …
Elena
  • 65
  • 3
-1
votes
1 answer

Replace() not working on multiline string and curly brackets

I am trying to replace some values inside a multiline string. To do that, I do the following steps: I define a raw string in which the values that I want to customize later are enclosed by curly brackets. I create a dictionary with my customization…
Jes
  • 130
  • 4
-1
votes
1 answer

Java multiline text removal for animation

Is there a way to clear multiple lines of text printed in the console with Java? I'm trying to print 2 pictures made with text that are slightly different and replace each other in a loop. Thus, I want to print a multiline string and then clear the…
-1
votes
1 answer

New line with invisible character not makes a line break?

I have a string that shows like that: def function(): my_string = """Balabala - Blala2: lala - Blala#End """ All the empty lines have that invisible character (character: ⠀). When I print that string, I get: Balabala -Blala2:…
-1
votes
1 answer

Why string.replace(/./gm,function(s){...} can not remove newline in multiline string with `backticks` in javascript

plese run the full functional code snippet. function nlin(x){ // I have to use: return x.replace(/[\s\S]/gm, function(e) { return x.replace(/./gm, function(e) { /* the new var e is never 10==e.charCodeAt(0) ! ** THAT…
And
  • 73
  • 2
  • 7
-1
votes
1 answer

Issue with using MultiLineString in Leaflet

My response(restructured as in code below) from server is this In order to use objects from this response for marker Animation in Leaflet I need to re-structure response as GeoJSON defines and I had to flip coordinates as Leaflet uses lat, lng and…
-1
votes
1 answer

How to convert GPS Long/Lat values to .WKT formatted LINESTRINGS?

I have GPS data which includes longitude and latitude information such as: 1 - longitude = 121.469600 latitude = 31.291600 2 - longitude = 121.432800 latitude = 31.307100 ... I need to convert this points to LINESTRING function and create .wkt…
1 2 3
15
16