delimited Questions

3

How to make an element array inside an array explode again. I have an array like this echo "<pre>"; print_r($pks); The Result. Array ( [0] => 2017-04-15||KMTC_HOCHIMINH [1] => 201...
Helve asked 19/5, 2017 at 2:41

10

Solved

Two days ago I started working on a code parser and I'm stuck. How can I split a string by commas that are not inside brackets? Let me show you what I mean. I have this string to parse: one, two, t...
Wirework asked 5/7, 2009 at 20:27

5

Solved

I have the following regex: \[([^ -\]]+)( - ([^ -\]]+))+\] This match the following successfully: [abc - def - ghi - jkl] BUT the match is: Array ( [0] => [abc - def - ghi - jkl] [1] => a...
Bellerophon asked 12/4, 2011 at 23:35

6

Solved

I want to let the user type in tags: windows linux "mac os x" and then split them up by white space but also recognizing "mac os x" as a whole word. Is this possible to combine ...
Rajkot asked 19/12, 2009 at 9:56

6

Solved

//go through each question foreach($file_data as $value) { //separate the string by pipes and place in variables list($category, $question) = explode('|', $value); //place in assoc array $data...
Eustis asked 21/3, 2011 at 23:11

3

Solved

Are there any command line tools (Linux, Mac, and/or Windows) that I could use to scan a delimited file and output a DDL create table statement with the data type determined for me? Did some googl...
Memorialist asked 20/9, 2013 at 19:51

4

Solved

I have a line like this in my code: list($user_id, $name, $limit, $remaining, $reset) = explode('|', $user); The last 3 parameters may or may not be there. Is there a function similar to list that...
Irreversible asked 12/3, 2013 at 15:31

10

Solved

How can I explode a string at the position after every third semicolon (;)? example data: $string = 'piece1;piece2;piece3;piece4;piece5;piece6;piece7;piece8;'; Desired output: $output[0] = 'piece1...
Beverage asked 13/8, 2009 at 22:30

2

I need to group rows in my two-dimensional array by two columns then within each group, I need to join another column's values with commas. Notice that in the third row, the diagnostic value is emp...
Stonecutter asked 13/10, 2017 at 5:52

3

Solved

I am receiving a UUID value from an external source, but the string doesn't contain any hyphens. A valid UUID should be in the format: abcdef01-2345-6789-abcd-ef0123456789 How can I convert: $UUID...
Guacharo asked 2/11, 2015 at 18:49

6

How can I convert string to an array? Input: $string = "12&Shoes&28&Jewelry&30&Watch&96&Beauty&98&Kids&Baby"; Desired output: array{ [12] => '...
Hibbs asked 29/5, 2017 at 19:26

9

[Update: Using SQL Server 2005] Hi, what I want to do is query my stored procedure with a comma-delimited list of values (ids) to retrieve rows of data. The problem I am receiving is a conversio...
Impolitic asked 5/2, 2009 at 17:54

6

Solved

I've got a string (not an array, it's a load of words stored in one string) and I'd like to put a comma after every word, although not putting one after the last word. I've got; echo str_replace(' ...
Irving asked 23/3, 2012 at 17:55

5

Solved

I have a string like this: $string = 'one/two/three/four'; which I turn it into a array: $keys = explode('/', $string); This array can have any number of elements, like 1, 2, 5 etc. How can I ...
Clamper asked 22/9, 2011 at 0:53

3

Solved

I have big data set which consist of around 94 columns and 3 Million rows. This file have single as well as multiple spaces as delimiter between columns. I need to read some columns from this file ...
Decompensation asked 7/6, 2013 at 8:46

5

I am trying to take a tab delimited file with two columns, Name and Age, which reads in as this: 'Name\tAge\nMark\t32\nMatt\t29\nJohn\t67\nJason\t45\nMatt\t12\nFrank\t11\nFrank\t34\nFrank\t65\nFra...
Encincture asked 30/9, 2011 at 2:27

3

Solved

I want to use bash to process a tab delimited file. I only need the second column and third to a new file.
Kerrykersey asked 10/6, 2011 at 22:10

5

Solved

When i try to open space delimited file in excel, the whole content opens in a single column. Is there any way to open the space delimited file in excel so that the delimited contents are properly ...
Streetlight asked 13/2, 2014 at 16:6

5

I have a form which is a select multiple input which POSTs values like this: option1,option2,option3 etc.. How is the best way to convert this to 'option1','option2','option3' etc... Currenty...
Highoctane asked 7/10, 2012 at 20:29

1

Solved

I would like to convert these strings into a combined nested array: array( 'item1:item2:itemx', 'item1:item2:itemy', 'itemz' ) To array( 'item1' => array( 'item2' => array( 'itemx' =&g...
Rameau asked 27/8, 2014 at 20:8

3

Solved

I get the error "Conversion failed when converting the nvarchar value '23,24,3,45,91,' to data type int." The error seems to be occuring on the ON clause. E.ID is an integer field while F.LegalIssu...
Abamp asked 11/9, 2013 at 14:46

3

Solved

I want to write a regular expression using javascript or jquery to allow comma delimited list of numbers OR space delimited numbers OR comma followed by a space delimited numbers OR a combinatio...
Patmos asked 4/7, 2013 at 14:15

2

I am quite new to python and programming in general, but I am trying to run a "sliding window" calculation over a tab delimited .txt file that contains about 7 million lines with python. What I mea...
Gladiolus asked 15/11, 2012 at 16:12

1

Solved

I have a table with rows of data and need to create a comma delimited string for all the rows for a column. Can this be achieved just using the the SELECT statement in SQLite or I have to get the d...
Iraqi asked 11/9, 2012 at 15:17

5

Solved

Presently, I am using this: if (preg_match ('/^[a-zA-Z0-9_]+([a-zA-Z0-9_]*[.-]?[a-zA-Z0-9_]*)*[a-zA-Z0-9_]+$/', $product) ) { return true; } else { return false } For example, I want to match: ...
Lorenz asked 26/5, 2012 at 6:58

© 2022 - 2024 — McMap. All rights reserved.