Declaring variable inside string - php

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

Related

PHP preg_match_all to find multiple base64 images

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\/gcmvrPI3nA8lfP83uiL774nwAAAADA1URFLwAAAACgjEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAA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h6JQmBOkAD1LqAIAfWjnOOWBgYHU1wP0t1pt\/UghysDAQORyY1EuL0WjsZX6ugGelFAFAPrQznHKQhXgpNVq6\/Hxxz87sC\/Kzt4o5fKS3k5AXxKqAEAfEqoAT6LZ3I56fTM2Nh7H6urDKJUWY3b2zoEhysjIcOTzM1EsLkS1uuYkCnAuCFUAoA\/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,iVBORw0KGgoAAAANSUhEUgAABFUAAACWCAYAAAAfULfCAAASLElEQVR4nO3dT2ij553A8bc726Qp1Eq30Py1vKXZQFvbh266EE9k2JJSZpChdAmdWbvNaT00MjulywzFvi0uVHNYikNZNNCDCwWFXNxeFHLwVSdd35Ou72nPOT97WF6t\/nnGfmW9r175c\/gcmvrPI3nA8lfP83uiL774nwAAAADA1URFLwAAAACgjEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFWBm3e554WsAAADIm6gCZNLtnoe9vfshiqIQRVH41rf+vvA1AQAA5ElUAS4tSfrhk0\/+FNbWqoOYMqzdPi18jQAAAHkRVYDnSpJ+ODp6HN58842pMUVUAQAAbiJRBbhQGlNefrkyEk82NtbD4eGjUK2uDv5bpbJS+HoBAADyJKoAU7XbpxPHfDY21sMf\/vBfIUn6odk8Hvn\/dnfvFb5mAACAPIkqwIg47oXt7dsjwaRaXQ2t1snIx4zvXonjXuFrBwAAyJOoAgwcHj4aiSWVykpoNo8nPq5W2xoJKo3GfuFrBwAAyJuoAkw96lOrbU3dfdJo7E\/sYkmSfuGPAQAAIG+iCtxg02JKtbp64S0+7fbpxI0\/3e554Y8DAACgCKIK3DBx3AtHR4\/DK698cySOXHTUZ\/jzxueoHB4+KvzxAAAAFEVUgRsgSfrh6dOPJwbQpjtTn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ACABoQoAAABAAkIVAAAAgASEKgAAAAAJCFUAAAAAEhCqAAAAACTwn4U+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...
)

How do i get each expected string from a multiple string line

I dont really no how to start my steatment to output my expected result but in my achievement i have a hug string characters line example
$string = 'newboy1fineboy8badboy12 boy4andothers...';
my problem is how do i get all the boy and related characters from the string line example:
my expected result should be boy1boy8boy12boy4
Big thanks for time and impact in my solution
You can use preg_match_all and then foreach to display all data as per your requirement like below:
<?PHP
$string = 'newboy1fineboy8badboy12 boy4andothers...';
$string = preg_match_all('/boy\d+/', $string, $results);
foreach($results[0] as $val){
echo $val;
echo "<br>";
}
// Output
boy8
boy12
boy4
?>
Or if you want to get all your required data in 1 string then like below:
foreach($results[0] as $val){
$updated_string .= $val;
$updated_string .= " ";
}
echo $updated_string;
// Output
boy8 boy12 boy4
If you want to get data like runboy8 runboy12 runboy4 then you have to use str_replace like below to further update your string:
$updated_string = str_replace("boy","runboy",$string);
// Output will be runboy8 runboy12 runboy4
You can use preg_match_all() to do that:
<?php
$string = 'newboy1fineboy8badboy12 boy4andothers...';
preg_match_all('/boy\d+/', $string, $results);
print_r($results);
Then you can access the list of matching strings as $results[0]:
Array
(
[0] => Array
(
[0] => boy1
[1] => boy8
[2] => boy12
[3] => boy4
)
)

php explode by comma ignore thousands seperator

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
)

Use regular expression to extract attribute value for custom tag

Thanks for taking a look at this. I'm using PHP. I have a string like so:
[QUOTE="name: Max-Fischer, post: 486662533, member: 123"]I don't so much dance as rhythmically convulse.[/QUOTE]
And I want to pull out the values in the quotes and create an associative array like so:
["name" => "Max-Fischer", "post" => "486662533", "member" => "123"]
Then, I would like to remove the opening and closing [QUOTE] tags and replace them with custom HTML like so:
<blockquote>Max-Fischer wrote: I don't so much dance as rhythmically convulse.</blockquote>
So the main problem is creating the preg_match() or preg_replace() to handle first: grabbing the values out in an array, and second: removing the tags and replacing them with my custom content. I can figure out how to use the array to create the custom HTML, I just can't figure how to use regular expressions well enough to achieve it.
I tried a match like this to get the attribute values:
/(\S+)=[\"\']?((?:.(?![\"\']?\s+(?:\S+)=|[>\"\']))+.)[\"\']?/
But this only returns:
[QUOTE
And that's not even addressing how to put the values (if I can get them) into an array.
Thanks in advance for your time.
Cheers.
If the tag you're looking for is always going to be quote, then perhaps something a little simpler is possible:
$s ='"[QUOTE="name: Max-Fischer, post: 486662533, member: 123"]I don\'t so much dance as rhythmically convulse.[/QUOTE]';
$r = '/\[QUOTE="(.*?)"\](.*)\[\/QUOTE\]/';
$m = array();
$arr = array();
preg_match($r, $s, $m);
// m[0] = the initial string
// m[1] = the string of attributes
// m[2] = the quote itself
foreach(explode(',', $m[1]) as $valuepair) { // split the attributes on the comma
preg_match('/\s*(.*): (.*)/', $valuepair, $mm);
// mm[0] = the attribute pairing
// mm[1] = the attribute name
// mm[2] = the attribute value
$arr[$mm[1]] = $mm[2];
}
print_r($arr);
print $m[2] . "\n";
this gives the following output:
Array
(
[name] => Max-Fischer
[post] => 486662533
[member] => 123
)
I don't so much dance as rhythmically convulse.
If you want to handle the case where there is more than one quote in the string, we can do this by modifying the regex to be slightly less greedy, and then using preg_match_all, instead of preg_match
$s ='[QUOTE="name: Max-Fischer, post: 486662533, member: 123"]I don\'t so much dance as rhythmically convulse.[/QUOTE]';
$s .='[QUOTE="name: Some-Guy, post: 486562533, member: 1234"]Quidquid latine dictum sit, altum videtur[/QUOTE]';
$r = '/\[QUOTE="(.*?)"\](.*?)\[\/QUOTE\]/';
// ^ <--- added to make it less greedy
$m = array();
$arr = array();
preg_match_all($r, $s, $m, PREG_SET_ORDER);
// m[0] = the first quote
// m[1] = the second quote
// m[0][0] = the initial string
// m[0][1] = the string of attributes
// m[0][2] = the quote itself
// element for each quote found in the string
foreach($m as $match) { // since there is more than quote, we loop and operate on them individually
$quote = array();
foreach(explode(',', $match[1]) as $valuepair) { // split the attributes on the comma
preg_match('/\s*(.*): (.*)/', $valuepair, $mm);
// mm[0] = the attribute pairing
// mm[1] = the attribute name
// mm[2] = the attribute value
$quote[$mm[1]] = $mm[2];
}
$arr[] = $quote; // we now build a parent array, to hold each individual quote
}
print_r($arr);
This gives output like:
Array
(
[0] => Array
(
[name] => Max-Fischer
[post] => 486662533
[member] => 123
)
[1] => Array
(
[name] => Some-Guy
[post] => 486562533
[member] => 1234
)
)
I managed to resolve yout problem: to get an associative array. I hope it will help you.
Here is code
$str = <<< PP
[QUOTE=" name : Max-Fischer,post : 486662533,member : 123 "]I don't so much dance as rhythmically convulse.[/QUOTE]
PP;
preg_match_all('/^\[QUOTE=\"(.*?)\"\](?:.*?)]$/', $str, $matches);
preg_match_all('/([a-zA-Z0-9]+)\s+:\s+([a-zA-Z0-9]+)/', $matches[1][0], $result);
$your_data = array_combine($result[1],$result[2]);
echo "<pre>";
print_r($your_data);

To look for a simple way to extract matched parts of strings from an array

I want to extract matched parts of strings --digital part from an array
array("HK00003.Day","HK00005.Day").
<?php
$arr=array("HK00003.Day","HK00005.Day");
$result= array();
foreach ($arr as $item){
preg_match('/[0-9]+/',$item,$match);
array_push($result,$match[0]);
}
It can get the result :00003 00005,it seems tedious,preg_grep seems simple but the result is not what i want .
preg_grep('/[0-9]+/',$arr);
The output is "HK00003.Day","HK00005.Day", not 00003 00005,
is there more simple way to get the job done?
You can use preg_filter (which already uses preg_replace and does not require additional callback functions) to replace the each entry in the array with the number inside:
<?php
$arr = array("HK00003.Day","HK00005.Day");
$matches = preg_filter('/^.*?([0-9]+).*/', '$1',$arr);
print_r($matches);
?>
Output of a sample program:
Array
(
[0] => 00003
[1] => 00005
)
This should work for you:
(Here I just get rid off every character in your array which isn't a number with preg_replace())
<?php
$arr = ["HK00003.Day", "HK00005.Day"];
$result = preg_replace("/[^0-9]/", "", $arr);
print_r($result);
?>
output:
Array ( [0] => 00003 [1] => 00005 )
Your code is fine, not tedious at all. If you want a one-liner you can try something like this (remove everything that's not a digit):
array_push($result, preg_replace("~[^0-9]~", "", $item));
preg_grep return array entries that match the pattern! Therefore, it returns an array of entry rather than the matching string
try below:
preg_match_all('/[0-9]+/',implode('-',$arr),$result);

Categories