Questions tagged [multiline]

Text that spans more than one line is considered "multiline". Concerns about wrapping, spacing, techniques and best practices.

Text that spans more than one line is considered "multiline". Concerns about wrapping, spacing, techniques and best practices, as well as language and platform-specific techniques for displaying text in a multiline format.

1916 questions
0
votes
3 answers

Multi line log parsing for service times in PHP/Python

What's the best way to parse a multi line log file that require contextual knowledge from previous lines in php and/or python? ex. Date Time ID Call 1/1/10 00:00:00 1234 Start 1/1/10 00:00:01 1234 ServiceCall A Starts 1/1/10 00:00:05…
tomasz
  • 323
  • 1
  • 4
  • 13
0
votes
1 answer

Multiline Truncation doesn't show '...' in Chrome

I am using multiline truncation sass mixin. It doesnot show '...' in chrome. While debugging I got -webkit-box-orient: vertical; is not getting applied. Below is the code: overflow: hidden; max-height: $font-size*$line-height*$lines-to-show; /*…
mahil
  • 33
  • 10
0
votes
1 answer

A regex in python for matching multiple lines of certain pattern

Hi I am trying to build a multiline regex to group a line followed by lines beginning with at least one white space. For example interface Ethernet 1/1 ip address <> mtu <> ip tcp path-mtu-discovery router bgp 100 network…
Yogesh
  • 1
  • 1
0
votes
1 answer

Unable to match a multiline regex with Powershell (but it does work in C#)

Given: PS D:\tmp> cat .\1.txt xaxa PS D:\tmp> What I was trying: PS D:\tmp> cat .\1.txt | sls '(?m:)]+>' PS D:\tmp> cat .\1.txt | sls '(?m:)]|$)+>'
mark
  • 59,016
  • 79
  • 296
  • 580
0
votes
1 answer

Multiple Line Label with word wrapping

This seems like it would be intuitive, but I've been trying to get text to stop going off screen for 45 minutes. Here is my viewDidLoad(): override func viewDidLoad() { super.viewDidLoad() orgTitle.numberOfLines = 0 …
Gabe Spound
  • 146
  • 2
  • 14
0
votes
1 answer

Multiline search in txt file with python

I have txt with patterns like this: ... 72 anything 73 } 74 something { 75 something2 76 something3 withVariableTextHere 77 anything ... I've tried searching for: "something {\nsomething2\nsomething3)" and I do get True result with re.findall, but…
zpetricevic
  • 33
  • 1
  • 7
0
votes
1 answer

VB.Net - RadioButton - Text on multiple lines

I'm writing a quiz application. Every question has 5 possible answers, so I've used 5 RadioButtons to get the answer selected. It happens that the text of some answers is too long and part of it isn't shown. Is it possible to show the text of a…
genespos
  • 3,211
  • 6
  • 38
  • 70
0
votes
2 answers

How to format a csv input file to pass jmeter a multipart/form-data

I am trying to find how to encode line feeds or how to format my csv input for jmeter. I need to pass 1000 form-data like this one: `--custom_boundary Content-Disposition: form-data; name="textualQuery" transgenic organisms in…
Fred A.
  • 31
  • 3
0
votes
1 answer

Logstash Processing Multi Line records from file

My log sample is something like this: 2017-01-03 03:38:18 +0000 field1: 123 field2: 321 field3: 1133 field4: 0901 2017-01-03 03:38:19 +0000 field1: 523 field2: 521 field3: 533 field4: 509 Im very new to this. How should I write the regex?
Shawn Sim
  • 545
  • 1
  • 5
  • 17
0
votes
1 answer

Logstash - Split Multiline Message into Head and Tail

I'm trying to parse a logfile, containing XML and other arbitrary output. In a specific case I want to check whether reservations have been successfully sent to the customer or not. [11-28-51.440000] Sending reservation to…
Danny
  • 166
  • 1
  • 9
0
votes
1 answer

Display multi-line texts in a label in CSHTML using jquery

I have a textbox(along with many other textboxes) in my cshtml view, where the user can enter some random texts(which can me multiline in nature) and save it in database. Once the data is saved successfully, the user can view the saved data using a…
Arpita Dutta
  • 291
  • 7
  • 19
0
votes
1 answer

Parsing log4j log files with multi-line entries (i.e. Java Stack Exceptions)

How do I use regex to parse a log4j 1 log file that can contain multiple lines per event? (i.e. java exception stack traces) Sample log4j log output Pattern layout %r [%t] %-5p %c{2} %x - %m%n 176 [main] INFO examples.Sort - Populating an array…
SimplyInk
  • 5,832
  • 1
  • 18
  • 27
0
votes
1 answer

python multiline regex capture

I have the following string: hello abcd pqrs 123 123 123 My objective is to capture everything starting hello and till the first occurrence of 123. So the expected output is as: hello abcd pqrs 123 I used the…
fsociety
  • 977
  • 3
  • 12
  • 23
0
votes
2 answers

With logstash how to combine lines starting with timestamp

Here is my sample log file which i need to parse using logstash: 2016-12-27 07:54:38.621 8407 ERROR oslo_service.service Traceback (most recent call last): 2016-12-27 07:54:38.621 8407 ERROR oslo_service.service File…
Suneha
  • 121
  • 2
  • 4
  • 10
0
votes
2 answers

How to search and replace in ksh within a heredoc variable once already set?

I don't have extensive experience in ksh and am having a rough time with a multi-line variable in a script I'm trying to revise. Basically, I'm looking to strip out the first part of the resulting output up until some "CAMP" text and keep whatever…
MattB
  • 714
  • 1
  • 8
  • 18
1 2 3
99
100