Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

PHP regex - modifying HTML element V2

Language: Layout:
+ ] Show input
Absolute running time: 0.19 sec, cpu time: 0.15 sec, memory peak: 8 Mb, absolute service time: 0,2 sec 
edit mode |  history  | discussion
Error(s), warning(s):
PHP Notice:  Only variables should be passed by reference in source_file.php on line 44
Matches with alt='logo' from HTML:
Array
(
    [0] => Array
        (
            [0] => <img src="*|r4|*" width="168" height="133" alt="logo" style="display:block" />
        )

    [imageSource] => Array
        (
            [0] => "*|r4|*"
        )

    [1] => Array
        (
            [0] => "*|r4|*"
        )

)


Flattened Array:
Array
(
    [0] => <img src="*|r4|*" width="168" height="133" alt="logo" style="display:block" />
    [1] => "*|r4|*"
    [2] => "*|r4|*"
)

Image Source: "*|r4|*"
Array
(
    [0] => "*|r4|*"
)


is this a valid HTTP source?: 0



New Image Source: "https://dcassetcdn.com/design_img/2505971/552274/552274_13470292_2505971_9c972622_image.png"

----- Plucking out Template Variable image source

Plucked image source: https://dcassetcdn.com/design_img/2505971/552274/552274_13470292_2505971_9c972622_image.png

Is plucked image source valid? : https://dcassetcdn.com/design_img/2505971/552274/552274_13470292_2505971_9c972622_image.png


    
                
λ
.NET NoSQL database for rapid development