Results 1-25 of about 116,339 results found for 'preg_match' in 1.20 seconds
 1 2345678910...

auth.file.php
            $line = trim($line);
            if($line != '' && $line[0] != '#'){
                if(preg_match("/(\S*)\s*:\s*(\S*),([01])$/",$line,$match)){
                    if($match[1] == $user){
                        return crypt($pass,$match[2]) == $match[2];
Language: PHP
License: GPL
(C) 2003-2007 Guillaume Gardey (ggardey@club-internet.fr)
LOC: 165
Savannah NonGNU : BibORB BibTeX On-line References Browser (project search) : .../biborb/biborb/php/auth_backends/auth.file.php

olacdb.php
    {
        $dsn = trim(file_get_contents("/home/olac/.mysqlpass"));
        preg_match("/\s*mysql:\/\/(.*):(.*)@(.*)\/(.*)\s*/", $dsn, $matches);
        list($all, $userName, $password, $hostname, $dbname) = $matches;
        $this->connect =
Language: PHP
LOC: 43
SourceForge : Open Language Archives Community (project search) : .../olac/olac_suite/mu_tools/lib/olacdb.php

class.gdimage.inc.php
          $a = ob_get_contents();
          ob_end_clean();
          if(preg_match('/.*GD Version.*(1[0-9|\.]+).*/',$a,$m))
          {
               $r=1; //$v=$m[1];
Language: PHP
License: GPL
(C) 2003-2005 Free Software Foundation, Inc. http://www.fsf.org/...
LOC: 322
Savannah GNU : phpGroupWare API (project search) : .../phpgwapi/phpgwapi/phpgwapi/inc/class.gdimage.inc.php

psg.php
          // regexps for user friendly links:
          //
          $regexp = sprintf('!^%s/article/(\d+)!', preg_quote($_SERVER['SCRIPT_NAME'], '/'));
          preg_match($regexp, $_SERVER['REQUEST_URI'], $matches);
          if (!empty($matches[1])) {
Language: PHP
License: GPL
(c) 2006 The Project Steve Guttenberg Team
LOC: 3222
Savannah NonGNU : Project Steve Guttenberg (project search) : .../p/psg/psg/psg/psg.php

functions.php
          return false;
     $contents = fread( $f, filesize( $err_codes_file ) );
     preg_match_all( "/0x[A-Fa-f0-9][A-Za-z0-9]\s+[0-9A-Za-z_]+\s+\"[^\"]*\"\n/", $contents, $entries );
     $err_codes = array();
     foreach( $entries[0] as $e )
Language: PHP
LOC: 702
SourceForge : eGroupWare: Enterprise Collaboration (project search) : .../egroupware/phpldapadmin/functions.php

DolibarrPdfBarCode.class.php
     $code = strtoupper($code);
     //Check validity
     if(!preg_match('|^[0-9A-Z. $/+%-]*$|', $code))
       $this->Error('Invalid barcode value: '.$code);
      }
Language: PHP
License: GPL
(C) 2005 Rodolphe Quiedeville
LOC: 258
Savannah NonGNU : Dolibarr (project search) : .../dolibarr/htdocs/includes/fpdf/DolibarrPdfBarCode.class.php

pgsql.php
            $this->affected = @pg_cmdtuples($result);
            return DB_OK;
        } elseif (preg_match('/^\s*\(?\s*SELECT\s+/si', $query) &&
                  !preg_match('/^\s*\(?\s*SELECT\s+INTO\s/si', $query)) {
            /* PostgreSQL commands:
Language: PHP
(c) 1997-2003 The PHP Group |
LOC: 427
Savannah NonGNU : Dolibarr (project search) : .../htdocs/includes/pear/DB/pgsql.php

class.phpmailer.php
      switch (strtolower($position)) {
        case 'phrase':
          if (!preg_match('/[\200-\377]/', $str)) {
            // Can't use addslashes as we don't know what value has magic_quotes_sybase.
            $encoded = addcslashes($str, "\0..\37\177\\\"");
Language: PHP
copyright 2001 - 2003 Brent R. Matzelle...
LOC: 828
Savannah GNU : phpGroupWare (project search) : .../phpgroupware/email/inc/phpmailer/class.phpmailer.php

register.php4
define(CGISTRON,      'http://www.language-archives.org/cgi-bin/schematron.cgi');
function myurlencode($url) {
  $tmp = preg_replace("'/'", "@", $url);
  return $tmp;
}
Language: PHP
LOC: 730
SourceForge : Open Language Archives Community (project search) : .../o/olac/olac/register/register.php4

class.bofelamimail.inc.php
     {
          /* Decode from base64 form */
          if (preg_match_all("/\=\?(.*?)\?b\?(.*?)\?\=/i", $string, $matches, PREG_SET_ORDER))
          {
               for($i=0; $i < count($matches); $i++)
Language: PHP
License: GPL
LOC: 1103
Savannah GNU : phpGroupWare (project search) : .../phpgroupware/phpgroupware/felamimail/inc/class.bofelamimail.inc.php

search.php
          #if ($_GET['allmode']) print "checked";
     ?>
     > Match substrings</input>
<input type="checkbox" value="phrase" name="phrasemode" 
     onClick="this.form.allmode.checked=false"
Language: PHP
LOC: 1231
SourceForge : Open Language Archives Community (project search) : .../olac/olac_suite/mu_tools/search/search.php

edit.php
          $user_password = $vals[0];
          /* Capture the stuff in the { } to determine if this is crypt, md5, etc. */
          preg_match( "/{([^}]+)}/", $user_password, $enc_type); 
          $enc_type = strtolower($enc_type[1]); 
          // Set the default hashing type if the password is blank (must be newly created)
Language: PHP
LOC: 461
SourceForge : eGroupWare: Enterprise Collaboration (project search) : .../egroupware/phpldapadmin/edit.php

main.php
}
/* Parse out the directory/filename */
if (preg_match("/^(\/)?([A-Za-z0-9\.]*)$/", $script_name.$path_info, $regs)) {
  if (!isset($scripts[$regs[2]])) {
    if (find_forum($regs[2])) {
Language: PHP
LOC: 215
SourceForge : Kawf (project search) : .../kawf/kawf/kawf/user/main.php

TestList2.php
<?php
     print preg_match("(\d{6})", "123456");
     print preg_match("(\+?3069\d{8})", "306973806247");
     print preg_match("(\d{4})", "4523");
Language: PHP
LOC: 6
Debian-SVN : sumusu (project search) : .../s/sumusu/sumusu/Tests/TestList2.php

common_functions.inc.php
      */
     /*
        $GLOBALS['phpgw_info']['server']['sanitize_types']['number'] = Array('type' => 'preg_match', 'string' => '/^[0-9]+$/i');
      */
     function sanitize($string,$type)
Language: PHP
License: LGPL
(C) 2000-2004 Free Software Foundation, Inc. http://www.fsf.org/
LOC: 688
Savannah GNU : phpGroupWare API (project search) : .../phpgwapi/phpgwapi/phpgwapi/inc/common_functions.inc.php

regexp_code.php
class ezcTemplateRegExp
{
    //preg_match( $reg, $s, $matches, $flags [, $offset] )
    //return $matches;
    public static function preg_match( $reg, $string )
Language: PHP
LOC: 10
Ez : eZ Components (project search) : .../Template/1.0beta1/src/functions/regexp_code.php

regexp_code.php
class ezcTemplateRegExp
{
    //preg_match( $reg, $s, $matches, $flags [, $offset] )
    //return $matches;
    public static function preg_match( $reg, $string )
Language: PHP
LOC: 10
Ez : eZ Components (project search) : .../Template/1.0beta2/src/functions/regexp_code.php

validation.inc.php
     function is_valid_id($id)
     {
          return preg_match('/^[0-9]$/', $id);
     }
     function is_valid_random_key($id)
Language: PHP
LOC: 10
Spider_20081217_inc : Teraband (project search) : .../batches/inc_003/teraband/validation.inc.php

fielddef.php
     var $field, $type, $notnull, $notempty, $explicit;
     function fielddef($fielddef) {
          if (!preg_match('/^([a-z]\w*)\s+([a-z]\w*)(?:\(\d*\))?(?:\s+(.*))?$/', strtolower($fielddef), $match)) {
               trigger_error("Bad field definition: $fielddef", E_USER_ERROR);
          }
Language: PHP
LOC: 34
Spider_20090107_inc : Informator (project search) : .../informator/informator/manager/library/fielddef.php

pcre-1.php
<?php
$s = 'laz/y brown cow jumps over the sly fox';
echo preg_match('/la[zZ]\/y/S', $s); 
echo preg_match('-cow-', $s);
echo preg_match('-cow-', $s); // this repeat is to test the cache
Language: PHP
LOC: 24
Roadsend PHP : Roadsend PHP (project search) : .../runtime/ext/pcre/tests/pcre-1.php

ungreedy.php
[file]
<?
preg_match("/a*/U", "aaa", $res);
echo $res[0]."\n";
preg_match("/a*?/U", "aaa", $res);
Language: PHP
LOC: 24
CodeplexProjectsSkippedBySpiderDB : Phalanger - The PHP Language Compiler for the .NET (project search) : .../svn/Tests/RegEx/Perl/ungreedy.php

preg.h
#ifndef _PREG_H
#define _PREG_H
#define PREG_MATCH                    0xFFA001
Language: C
LOC: 8
Spider_20090107_inc : Yet Another C Chatting Algorithm (project search) : .../yacca2-20041228.tar.bz2/yacca2/src/main/preg.h

getRobots.php
*
*/
   if(preg_match('/StackRambler/i',$UserAgent)){
      $Robot = 'StackRambler';
    }
Language: PHP
LOC: 113
Spider_319 : open-azimyt-cms (project search) : .../Open_Azimyt_CMS_0.22_minimal.tar.gz/Open Azimyt/lib/Util/getRobots.php

header.php
//////////////////// ONLINE END /////////////////////
function botas($agentas) {
     if (preg_match("/\bGigabot\b/i", $agentas))
          return true;
     if (preg_match("/\bmsnbot\b/i", $agentas))
Language: PHP
License: GPL
LOC: 131
Spider_319 : mightmedia (project search) : .../mightmedia/MightMedia.rar/MightMedia/priedai/header.php

modifier.attocmsparagraph.php
{
    $blocktags = "";
    if (preg_match('/<div.*/',$string))  $blocktags = "true" ;
    if (preg_match('/<ul.*/',$string))  $blocktags = "true" ;
    if (preg_match('/<ol.*/',$string))  $blocktags = "true" ;
Language: PHP
LOC: 16
Spider_20090107_inc : attoCMS (project search) : .../attocms/attocms_alpha_0_7.tgz/attocms/plugins/modifier.attocmsparagraph.php

 1 2345678910...







About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us