Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-03-2013, 07:10 PM   PM User | #1
sorlaker
Regular Coder

 
Join Date: Dec 2009
Posts: 167
Thanks: 23
Thanked 1 Time in 1 Post
sorlaker has a little shameless behaviour in the past
PHP preg_match matches help

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA


WHY ISN'T THIS WORKING!??????? AAAAAAAAAAA

PHP Code:
<pre>
<?php
    $string 
"Hello Hella Haellowwweennn World";
    
preg_match("/(\w+)?ell(\w+)?/"$string$matches);
    
print_r($matches);
?>
</pre>
I just want it to echo

Hello
Hella
Haellowwweennn

how hard could that be?

help pls!

Last edited by sorlaker; 01-03-2013 at 08:07 PM..
sorlaker is offline   Reply With Quote
Old 01-03-2013, 08:06 PM   PM User | #2
sorlaker
Regular Coder

 
Join Date: Dec 2009
Posts: 167
Thanks: 23
Thanked 1 Time in 1 Post
sorlaker has a little shameless behaviour in the past
Got it. Just had to use preg_match_all.. ty.
sorlaker is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:06 AM.


Advertisement
Log in to turn off these ads.