Help for this page

Select Code to Download


  1. or download this
    <?php
    $mystr = 'foo,bar,moo,cow';
    ...
       <li><?=$match?></li>
    <?php } ?>
    </ul>
    
  2. or download this
    #!/usr/bin/python
    from re import findall
    ...
    values = findall('(\w+)\,?',mystr)
    
    for val in values: print val