I am scraping the following kind of strings from an external resource which I can't change:
["one item",0,0,2,0,1,"800.12"],
["another item",1,3,2,5,1,"1,713.59"],
(etc...)
I use the following code to explode the elements into an array.
<?php
$id = 0;
foreach($lines AS $line) {
$id = 0;
// remove brackets and line end comma's
$found_data[] = str_replace(array('],', '[',']', '"'), array('','','',''), $line);
// add data to array
$results[$id] = explode(',', $line);
}
Which works fine for the first line, but as the second line uses a comma for the thousands seperator of the last item, it fails there. So somehow I need to disable the explode to replace stuff between " characters.
If all values would be surrounded by " characters, I could just use something like
explode('","', $line);
However, unfortunately that's not the case here: some values are surrounded by ", some aren't (not always the same values are). So I'm a bit lost in how I should proceed. Anyone who can point me in the right direction?
You can use json_decode here since your input string appears to be a valid json string.
$str = '["another item",1,3,2,5,1,"1,713.59"]'
$arr = json_decode($str);
You can then access individual indices from resulting array or print the whole array using:
print_r($arr);
Output:
Array
(
[0] => another item
[1] => 1
[2] => 3
[3] => 2
[4] => 5
[5] => 1
[6] => 1,713.59
)
Related
I have a JSON string that may contain one or multiple base64 images.
Here is an example of the JSON string and the REGEX which only find the first occurance.
<?php
preg_match_all('/(data:\s*\S*\/(\w*);base64,[^\"]+)/', $content, $result);
Here is my content,
<?php
$content = '{"textArea":"one","signature":"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAABFUAAACWCAYAAAAfULfCAAASLElEQVR4nO3dT2ij553A8bc726Qp1Eq30Py1vKXZQFvbh266EE9k2JJSZpChdAmdWbvNaT00MjulywzFvi0uVHNYikNZNNCDCwWFXNxeFHLwVSdd35Ou72nPOT97WF6t\/nnGfmW9r175c\/gcmvrPI3nA8lfP83uiL774nwAAAADA1URFLwAAAACgjEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEF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56fTM2Nh7H6urDKJUWY3b2zoEhysjIcOTzM1EsLkS1uuYkCnAuCFUAoA\/tDFUGBzOprwc4W5rN7djYeByl0mJ8+OFcTE9PxsTE+IGNZHeX8Ny\/f88JFODcE6oAQB\/K52eEKkA0GluxsfE4lpcfxPz83WMFJ63ynVxuLPL5mahUVkwSA9hFqAIAfSiXG+t4o5z2eoBOjcZWlEqLJ1oiU69vxurqw\/jpT\/93vPvuO0dqGruzbKdcXopqdS1qtXUTwwCOSKgCAH2oUllpb5iMKoWzJ5O50r5GR0eHY2JivMP169m4detmvP76f9nzezsNDAzEpUuXjhyetJrGVqtrTp0AnAChCgD0qWZz29tmOIN2jzw\/DVevvtwRoLgXAJwOoQoAADxlO\/senZRWiGLqDsDTI1QBAIAUNBpbUS4vRbG40FaprLT7mlSra\/G3f3s\/isWFKBTmIp+faSsU5trf82\/\/9q9OogCkRKgCAAAAkIBQBQAAACABoQoAAABAAkIVAAAAgASEKgAAAAAJCFUAAAAAEhCqAAAAACQgVAEAAABIQKgCAAAAkIBQBQAAACABoQoAAABAAkIVAAAAgASEKgAAAAAJCFUAAAAAEhCqAAAAACTwn4U+fJ+Q3+ITAAAAAElFTkSuQmCC",'.
'"textArea3":"fourrrr4444"}';
Thanks.
This is much easier if you first json_decode the text; then you can simply check each value in the decoded result to see if it begins with a valid data:image and if so, add it to your output:
$data = json_decode($content, true);
$images = array();
foreach ($data as $value) {
if (preg_match('#^data:image.*?base64,#', $value)) {
$images[] = $value;
}
}
print_r($images);
Output:
Array
(
[0] => data:image/png;base64,iVBORw0KGgoAAAANSU...
[1] => data:image/png;base64,iVBORw0KGgoAAAANSU...
[2] => data:image/png;base64,iVBORw0KGgoAAAANSU...
)
Demo on 3v4l.org
The regex syntax gets tricky here, because you have the literal text image\/png in your input. The backslash must be escaped six times here, four for a literal backslash, and two for an escape for the forward slash (which is also the delimiter used in the call to preg_match_all). Consider this script:
$content = '{"textArea":"one","signature":"data:image\/png;base64,iVBORw0KGgoAAAANSUh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yb775za49UzKZK+5rwJkgVAGAPlUuL7U3IJXKSurrAThIs7kdy8sPYmJivOuplJ1hilIf4KwQqgBAnyoU5kz+Ac60VmnPflN8BgYG4sqVl2Jq6nZUq2uprxdgN6EKAPSpW7duClWAM6de34xSafHAICWTuRJTU7ejVlt3KgU404QqANCndm5QNHIE0tLqjzI9PblvWU8rSMnnZ5xIAXqKUAUA+tTOzYo3vcDT0gpRZmfvxPXr2X1DlIGBgchmh6JQmBOkAD1LqAIAfWjnOOWBgYHU1wP0t1pt\/UghysDAQORyY1EuL0WjsZX6ugGelFAFAPrQznHKQhXgpNVq6\/Hxxz87sC\/Kzt4o5fKS3k5AXxKqAEAfEqoAT6LZ3I56fTM2Nh7H6urDKJUWY3b2zoEhysjIcOTzM1EsLkS1uuYkCnAuCFUAoA\/tDFUGBzOprwc4W5rN7djYeByl0mJ8+OFcTE9PxsTE+IGNZHeX8Ny\/f88JFODcE6oAQB\/K52eEKkA0GluxsfE4lpcfxPz83WMFJ63ynVxuLPL5mahUVkwSA9hFqAIAfSiXG+t4o5z2eoBOjcZWlEqLJ1oiU69vxurqw\/jpT\/93vPvuO0dqGruzbKdcXopqdS1qtXUTwwCOSKgCAH2oUllpb5iMKoWzJ5O50r5GR0eHY2JivMP169m4detmvP76f9nzezsNDAzEpUuXjhyetJrGVqtrTp0AnAChCgD0qWZz29tmOIN2jzw\/DVevvtwRoLgXAJwOoQoAADxlO\/senZRWiGLqDsDTI1QBAIAUNBpbUS4vRbG40FaprLT7mlSra\/G3f3s\/isWFKBTmIp+faSsU5trf82\/\/9q9OogCkRKgCAAAAkIBQBQAAACABoQoAAABAAkIVAAAAgASEKgAAAAAJCFUAAAAAEhCqAAAAACQgVAEAAABIQKgCAAAAkIBQBQAAACABoQoAAABAAkIVAAAAgASEKgAAAAAJCFUAAAAAEhCqAAAAACTwn4U+fJ+Q3+ITAAAAAElFTkSuQmCC",'.
'"textArea3":"fourrrr4444"}';
preg_match_all("/\"data:image\\\\\\/png;base64,([^\"]+)/", $content, $matches);
print_r($matches[1]);
This prints:
Array
(
[0] => iVBORw0KGgoAAAANSUhEUgAABFUAAA...
[1] => iVBORw0KGgoAAAANSUhEUgAABFUAAA...
[2] => iVBORw0KGgoAAAANSUhEUgAABFUAAA...
)
I have this kind of string.
'"asdfasdf","123456", this is a message. OK'
What i want to do is declare variables according to the first, second quotation and the rest of the message until the OK...
(note: the length of the string inside the '' is not consistent)
$First = "asdfasdf"
$Second = "123456"
$Message = "this is a message"
is this even possible?
is there something like " "$First","$Second", "$Message" OK " kind of way?
TIA.
Is this a CSV file ?
Doesn't seem to, but if it was you should check out the csv functions of php, specifically str_getcsv.
If not, you should just do an explode by , or ", or any combination you think would be most accurate, and then go through each array item.
$string = '"asdfasdf","123456","this is a message. OK"';
$temp = explode('","',$string);
$array = array();
foreach($temp as $key=>$value){
//do stuff with $value and $key
}
You can use regular expressions, like this:
Code
$raw = '"asdfasdf","123456", this is a message. OK'; // this is your raw text
preg_match('/^"(?P<first>[^"]+)","(?P<second>[^"]+)",\s+(?P<message>.+?) OK/', $raw, $matches); // this looks for the pattern you defined and stores the matches in $matches
print_r($matches); // this just dumps out the array of matching substrings
Output
Array
(
[0] => "asdfasdf","123456", this is a message. OK
[first] => asdfasdf
[1] => asdfasdf
[second] => 123456
[2] => 123456
[message] => this is a message.
[3] => this is a message.
)
You can access the individual substrings as, for example, $matches['first'], $matches['second'], or $matches['message'].
PHP Demo
Regex Demo
I am using a explode and str_replace on the get parameter of the query string URL. My goal is to split the strings by certain characters to get to the value in the string that I want. I am having issues. It should work but doesn't.
Here are two samples of links with the query strings and delimiters I'm using to str_replace.
http://computerhelpwanted.com/jobs/?occupation=analyst&position=data-analyst
as you can see the URL above parameter is position and the value is data-analyst. The delimiter is the dash -.
http://computerhelpwanted.com/jobs/?occupation=analyst&position=business+systems+analyst
and this URL above uses same parameter position and value is business+systems+analyst. The delimiter is the + sign.
The value I am trying to get from the query string is the word analyst. It is the last word after the delimiters.
Here is my code which should do the trick, but doesn't for some reason.
$last_wordPosition = str_replace(array('-', '+')," ", end(explode(" ",$position)));
It works if the delimiter is a + sign, but fails if the delimiter is a - sign.
Anyone know why?
You have things in the wrong order:
$last_wordPosition = end(explode(" ", str_replace(array('-', '+'), " ", $position)));
You probably want to split it up so as to not get the E_STRICT error when not passing an variable to end:
$words = explode(" ", str_replace(array('-', '+'), " ", $position));
echo end($words);
Or something like:
echo preg_replace('/[^+-]+(\+|-)/', '', $position);
As #MarkB suggested you should use parse_url and parse_str since it is more appropriate in your case.
From the documentation of parse_url:
This function parses a URL and returns an associative array containing any of the various components of the URL that are present.
From the documentation of parse_str:
Parses str as if it were the query string passed via a URL and sets variables in the current scope.
So here is what you want to do:
$url1 = 'http://computerhelpwanted.com/jobs/?occupation=analyst&position=data-analyst';
$url2 = 'http://computerhelpwanted.com/jobs/?occupation=analyst&position=business+systems+analyst';
function mySplit($str)
{
if (preg_match('/\-/', $str))
$strSplited = split('-', $str);
else
$strSplited = split(' ', $str);
return $strSplited;
}
parse_str(parse_url($url1)['query'], $output);
print_r($values = mySplit($output['position']));
parse_str(parse_url($url2)['query'], $output);
print_r($values = mySplit($output['position']));
OUTPUT
Array
(
[0] => data
[1] => analyst
)
Array
(
[0] => business
[1] => systems
[2] => analyst
)
You said that you needed the last element of those values. Therefore you could find end and reset useful:
echo end($values);
reset($values);
Answering my own question to show how I ended up doing this. Seems like way more code than what the accepted answer is, but since I was suggested to use parse_url and parse_str but couldn't get it working right, I did it a different way.
function convertUrlQuery($query) {
$queryParts = explode('&', $query);
$params = array();
foreach ($queryParts as $param) {
$item = explode('=', $param);
$params[$item[0]] = $item[1];
}
return $params;
}
$arrayQuery = convertUrlQuery($_SERVER['QUERY_STRING']); // Returns - Array ( [occupation] => designer [position] => webmaster+or+website-designer )
$array_valueOccupation = $arrayQuery['occupation']; // Value of occupation parameter
$array_valuePosition = $arrayQuery['position']; // Value of position parameter
$split_valuePosition = explode(" ", str_replace(array('-', '+', ' or '), " ", $array_valuePosition)); // Splits the value of the position parameter into separate words using delimeters (- + or)
then to access different parts of the array
print_r($arrayQuery); // prints the array
echo $array_valueOccupation; // echos the occupation parameters value
echo $array_valuePosition; // echos the position parameters value
print_r($split_valuePosition); // prints the array of the spitted position parameter
foreach ($split_valuePosition as $value) { // foreach outputs all the values in the split_valuePosition array
echo $value.' ';
}
end($split_valuePosition); // gets the last value in the split_valuePosition array
implode(' ',$split_valuePosition); // puts the split_valuePosition back into a string with only spaces between each word
which outputs the following
arrayQuery = Array
(
[occupation] => analyst
[position] => data-analyst
)
array_valueOccupation = analyst
array_valuePosition = data-analyst
split_valuePosition = Array
(
[0] => data
[1] => analyst
)
foreach split_valuePosition =
- data
- analyst
end split_valuePosition = analyst
implode split_valuePosition = data analyst
Merchant Id|Merchant|Website|Transaction In Period|Voids In Period|Gross Sales Amount|Total Commision in Period
9766|Mountains Plus Outdoor Gear|www.MPGear.com|1|0|88.91|8.89
12447|Meritline.com|www.meritline.com|5|0|52.86|3.71
16213|East Coast Fashions|www.discountstripper.com|1|0|32.27|3.23
17226|HRM USA|www.HeartRateMonitorsUSA.com|1|0|189.9|6.65
I am getting above string from url now now I want convert that string to array based on split delimiter |
But there is a problem after end of each new row there is not placed delimiter | so I want that to placed that delimiter after each row end.
Note :: all columns will be predefined and it will return same all time request.
I am using this code to convert that string to array . This code is working perfect if there will be all delimiter placed correctly in string.
$NumColumns = 6;
$Delim = "|";
$data = array_chunk(explode($Delim,$contents), $NumColumns);
output will be like this
Array
(
[0] => Array
(
[0] => Merchant Id
[1] => Merchant
[2] => Website
[3] => Transaction In Period
[4] => Voids In Period
[5] => Gross Sales Amount
[6] => Total Commision in Period
)
[1] => Array
(
[0] => 9766
[1] => Mountains Plus Outdoor Gear
[2] => www.MPGear.com
[3] => 1
[4] => 0
[5] => 88.91
[6] => 8.89
)
-----
----
)
Try using str_getcsv or explode.
<?php
$data_from_url = "Merchant Id|Merchant|Website|Transaction In Period|Voids In Period|Gross Sales Amount|Total Commision in Period
9766|Mountains Plus Outdoor Gear|www.MPGear.com|1|0|88.91|8.89
12447|Meritline.com|www.meritline.com|5|0|52.86|3.71
16213|East Coast Fashions|www.discountstripper.com|1|0|32.27|3.23
17226|HRM USA|www.HeartRateMonitorsUSA.com|1|0|189.9|6.65";
$splitted_data = explode(PHP_EOL, $data_from_url);
/**
* print_r($splitted_data) will be
* Array
* (
[0] => "Merchant Id|Merchant|Website|Transaction In Period|Voids In Period|Gross Sales Amount|Total Commision in Period"
[1] => "9766|Mountains Plus Outdoor Gear|www.MPGear.com|1|0|88.91|8.89"
...
* )
*/
// You can now iterate through the lines
$output1 = array();
foreach($splitted_data as $row) {
$output1[] = str_getcsv(trim($row), '|'); // parses a
// OR
//$output1[] = explode('|', trim($row));
}
// OR use array_map with callback function
$output2 = array_map(function($line){ return explode('|', trim($line)); }, $splitted_data);
$output3 = array_map(function($line){ return str_getcsv(trim($line), '|'); }, $splitted_data);
var_dump($output1, $output2, $output3); // The result you want to achive
?>
I would do this as a 2-step process. First split it into lines on the \n (newline) character, and then split each line on the | character.
You can do that in only a couple lines, like this:
$lines = explode("\n", $contents);
$data = array_map(function($line) {return explode('|', trim($line));}, $lines);
You can see this working here: http://phpfiddle.org/main/code/9fv-h2c
Once I split the contents into individual lines, I'm using the array_map() function to apply the same operation to every element of the array (every line).
array_map() calls a callback function (which I define as an anonymous function) for each element in the array. In this instance, I've defined a simple function that trims the line to remove any extra spaces there may be, and then splits it on the | character to get the individual fields.
If the array_map line is a bit complicated, I could illustrate how it's working by rewriting it without the anonymous function like this:
function processLine($line) {
$line = trim($line);
$fields = explode('|', $line);
return $fields;
}
$data = array_map('processLine', $lines);
...or even rewriting it without using array_map like this:
function processLine($line) {
$line = trim($line);
$fields = explode('|', $line);
return $fields;
}
$data = array();
foreach ($lines as $l) {
$data[] = processLine($l);
}
If I understand your question correctly, you're trying to split the data, but want to keep the delimiter | as part of the string.
Using preg_split, you can do this like so:
$arr = preg_split('/([^|]*\|)/', $string, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
The expression matches zero or more chars that aren't | ([^|]*)
and matches the delimiting |. the combination of the two is used as delimiter. In other words, everything is a delimiter now.
That's why we have to use the predefined constant PREG_SPLIT_DELIM_CAPUTRE.
Of course, between the delimiters, there's nothing, but preg_split will capture this nothing-ness, too and add empty matches in the resulting array. That's why we have to use the other predefined constant: PREG_SPLIT_NO_EMPTY.
The two constants are combined by means of the bitwise OR operator |
$output = explode(PHP_EOL, $input);
foreach($output as &$line)
{//$line is a reference here, important!
$line = preg_split('/([^|]*\|)/', $line, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
}
This should produce the desired ouptut, assuming you want the delimiting | kept in the strings. if not:
$output = explode(PHP_EOL, $input);
foreach($output as &$line)
{
$line = explode('|', $line);
}
That's it, really...
Let's say I have this input:
I can haz a listz0rs!
# 42
# 126
I can haz another list plox?
# Hello, world!
# Welcome!
I want to split it so that each set of hash-started lines becomes a list:
I can haz a listz0rs!
<ul>
<li>42</li>
<li>126</li>
</ul>
I can haz another list plox?
<ul>
<li>Hello, world!</li>
<li>Welcome!</li>
</ul>
If I run the input against the regex "/(?:(?:(?<=^# )(.*)$)+)/m", I get the following result:
Array
(
[0] => Array
(
[0] => 42
)
[1] => Array
(
[0] => 126
)
[2] => Array
(
[0] => Hello, world!
)
[3] => Array
(
[0] => Welcome!
)
)
This is fine and dandy, but it doesn't distinguish between the two different lists. I need a way to either make the quantifier return a concatenated string of all the occurrences, or, ideally, an array of all the occurrences.
Ideally, this should be my output:
Array
(
[0] => Array
(
[0] => 42
[1] => 126
)
[1] => Array
(
[0] => Hello, world!
[1] => Welcome!
)
)
Is there any way of achieving this, and if not, is there a close alternative?
If you want to do this with regular expressions, you'll need two. Use the regex ^(#.*\r?\n)+ to match each list and add tags around it. Within each list (as matched by the first regex), search-and-replace ^#.* with <li>$0</li> to add tags around each list item. Both regexes require ^ to match at line breaks (/m flag in PHP).
In PHP you can use preg_replace_callback and preg_replace to achieve this in just a few lines of code.
$result = preg_replace_callback('/^(#.*\r?\n)+/m', 'replacelist', $subject);
function replacelist($groups) {
return "<ul>\n" .
preg_replace('/^#.*/m', ' <li>$0</li>', $groups[0])
. "</ul>\n";
}
I'd say don't try to do it all in a single regex - instead, first use a regex to match sets of consecutive lines that all begin with # signs and wrap those lines with a <ul></ul> pair. Then use a second regex (or not even a regex at all - you could just split on line breaks) to match each individual line and convert it to <li></li> format.
If it was me I would:
explode("\n", $input) into an array where 1 key = line
foreach through that array
whenever you get a line that doesn't start with a #, that's when you add your closing/opening ul tags
Add a little more to deal with unexpected input (like two non hash lines in a row) and you're good.
Looks like Syntax Error has already explained what I'm doing. But here goes the link to a working example.
With structured content like this, I would not do this as a regex. How about another approach?
$your_text = <<<END
I can haz a listz0rs!
# 42
# 126
I can haz another list plox?
# Hello, world!
# Welcome!
END;
function printUnorderedList($temp) {
if (count($temp)>0) {
print "<ul>\n\t<li>" .implode("</li>\n\t<li>", $temp) . "</li>\n</ul>\n";
}
}
$lines = explode("\n", $your_text);
$temp = array();
foreach($lines as $line) {
if (substr($line, 0, 1) == '#') {
$temp[] = trim(substr($line,1));
} else {
printUnorderedList($temp);
$temp = array();
echo $line . "\n";
}
}
printUnorderedList($temp);
You could avoid regex altogether, and simply try a simpler approach by having it read the file, line by line (an array of lines), and every time it encounters a non-hash-started line, it starts a new list. Like so:
// You can get this by using file('filename') or
// just doing an explode("\n", $input)
$lines = array(
'I can haz a listz0rs!',
'# 42',
'# 126',
'I can haz another list plox?',
'# Hello, world!',
'# Welcome!'
);
$hashline = false;
$lists = array();
$curlist = array();
foreach ($lines as $line) {
if ($line[0] == '#')
$curlist[] = $line;
elseif ($hashline) {
$lists[] = $curlist;
$curlist = array();
$hashline = false;
}
}
A little clean-up may be in order, but hopefully it helps.
(after reading new answers, this is basically an indepth explanation of Syntax Error's answer.)
EDIT: You may want it to strip off the # at the beginning of each line too.