Jump to content

[SOLVED] preg_split()


php.ajax.coder

Recommended Posts

love the regexp explain it please, bit by bit well good.

 

i am learning advance regexp love that one.

 

this group well good like to no what it means cheers.

 

(?<=[^\d])

 

<?php
$word="Hello: welcome it's ".date("d/m/y,h:i:s")."";
$word = preg_replace('/(?<=[^\d])((?=[^\d])/sm', '', $word);
$NewWord=explode(' ',$word);
print_r($NewWord);
?>

Link to comment
https://forums.phpfreaks.com/topic/149021-solved-preg_split/#findComment-782597
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.