3.144.10.14 |    

Navigation

Google Advertisement

All snippets of the tag regexp

Preview 10 Entries 11-20 of 21 Entries Next 10 Entries

searchmarker
(PHP::Function)
Created by Marko Schulz at 2010-01-20 13:38:42
/******************************************************************* * This function highlight a wanted keyword in a text. * * @param string $strHaystack raw text * @param string $strNeedle wanted keyword(s) * @param string $strColor color in h...

httphost
(PHP::Snippets)
Created by Marko Schulz at 2010-01-20 12:48:45
// ************************************************************** // httphost -- Cut the hostname from protocol, port and uri and // return information about host+sub, domain, tld. // // mixed httphost( string $url [, string $key ] ) function...

code2html
(PHP::Snippets)
Created by Marko Schulz at 2010-01-20 12:46:49
function code2html($text) { $text=eregi_replace("\[B\]([^\[]+)\[/B\]", "<b>\\1</b>", $text); $text=eregi_replace("\[I\]([^[]+)\[/I\]", "<i>\\1</i>", $text); $text=eregi_replace("\[URL\]www.([^\[]+)\[/URL\]", "<a href=\"http://...

is_int
(Bash::Function)
Created by Marko Schulz at 2010-01-20 12:16:24
# ************************************************************ # This function check, if [$number] is an integer number. # This function return 'true' if [$number] is integer otherwise # return 'false'. function is_int () { local number=$1 [ -z "...

hostname
(Perl::Function)
Created by Marko Schulz at 2008-12-27 03:49:52
# ******************************************** # The function return the hostname of the # current system by using the unix command (hostname). sub hostname { my ($hostname) = ( `hostname` =~ m/([^\n]+)/g ); return $hostname; }

filename
(PHP::Function)
Created by Marko Schulz at 2008-12-27 03:08:09
// ************************************************************** // filename -- extract the filename from file path // // string filename( string $str ) function filename ( $str ) { if ( preg_match( '@([^\\\/]+)\?@', $str, $match ) or pr...

check_url
(Python::Function)
Created by Marko Schulz at 2008-12-27 02:53:48
def check_url( url ): """check_url --- Check the syntax of a url format and return False if the syntax is bad and True if the syntax is good. (bool) bool check_url( (string) url )""" from re import compile, match regexp = com...

check_mailaddr
(Python::Function)
Created by Marko Schulz at 2008-12-27 02:53:06
def check_mailaddr( email ): """check_mailaddr --- Check the syntax of an email address format and return False if the syntax is bad and True if the syntax is good. (bool) bool check_mailaddr( (string) email )""" from re import co...

filename
(Python::Function)
Created by Marko Schulz at 2008-12-27 02:45:18
def filename( file ): """filename -- extract the filename from file path (string) filename( (string) file )""" from re import compile, findall if file.find('?') == -1: regexp = compile('([^\\\\/]+)$') else: ...

filename
(Perl::Function)
Created by Marko Schulz at 2008-12-27 02:41:55
# ************************************************************** # filename -- extract the filename from file path # # string filename( string string ) sub filename { my $str=shift; $str = $1 if ( $str =~ m!([^\\/]+)\?! || $str =~ m!([^\\/]+)...

Preview 10 Entries 11-20 of 21 Entries Next 10 Entries
Search
 
Full text search by name and content of a snippet.

User online
There are 5 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)