Another post from manscript. This is so funny. You need to checkout the post here:Â http://www.manscript.com/2008/09/25/fgas-2-found/Â It’s kinda about how those fat babes looks so sexy and can be so deceiving on pix.
Â
Another post from manscript. This is so funny. You need to checkout the post here:Â http://www.manscript.com/2008/09/25/fgas-2-found/Â It’s kinda about how those fat babes looks so sexy and can be so deceiving on pix.
Â
I bumped into this website and this post http://www.manscript.com/2009/01/28/4-life-lessons-from-mario/ caught my attention. Check it out!Â
Â
Just wanted to share regex reference site. You can check it here http://www.grymoire.com/Unix/Regular.html
for more details.
A regular expression is a set of characters that specify a pattern. The term “regular” has nothing to do with a high-fiber diet. It comes from a term used to describe grammars and formal languages.
Regular expressions are used when you want to search for specify lines of text containing a particular pattern. Most of the UNIX utilities operate on ASCII files a line at a time. Regular expressions search for patterns on a single line, and not for patterns that start on one line and end on another.
| Pattern | Matches |
| ^A | “A” at the beginning of a line |
| A$ | “A” at the end of a line |
| A^ | “A^” anywhere on a line |
| $A | “$A” anywhere on a line |
| ^^ | “^” at the beginning of a line |
| $$ | “$” at the end of a line |
You can easily search for all characters except those in square brackets by putting a “^” as the first character after the “[." To match all characters except vowels use "[^aeiou].” Like the anchors in places that can’t be considered an anchor, the characters “]” and “-” do not have a special meaning if they directly follow “[." Here are some examples:
| Regular Expression | Matches |
| [] | The characters “[]“ |
| [0] | The character “0″ |
| [0-9] | Any number |
| [^0-9] | Any character other than a number |
| [-0-9] | Any number or a “-” |
| [0-9-] | Any number or a “-” |
| [^-0-9] | Any character except a number or a “-” |
| []0-9] | Any number or a “]” |
| [0-9]] | Any number followed by a “]” |
| [0-9-z] | Any number, |
| or any character between “9″ and “z”. | |
| [0-9\-a\]] | Any number, or |
| a “-”, a “a”, or a “]” |
You must remember that modifiers like “*” and “\{1,5\}” only act as modifiers if they follow a character set. If they were at the beginning of a pattern, they would not be a modifier. Here is a list of examples, and the exceptions:
| Regular Expression | Matches |
| _ | |
| * | Any line with an asterisk |
| \* | Any line with an asterisk |
| \\ | Any line with a backslash |
| ^* | Any line starting with an asterisk |
| ^A* | Any line |
| ^A\* | Any line starting with an “A*” |
| ^AA* | Any line if it starts with one “A” |
| ^AA*B | Any line with one or more “A”’s followed by a “B” |
| ^A\{4,8\}B | Any line starting with 4, 5, 6, 7 or 8 “A”’s |
| followed by a “B” | |
| ^A\{4,\}B | Any line starting with 4 or more “A”’s |
| followed by a “B” | |
| ^A\{4\}B | Any line starting with “AAAAB” |
| \{4,8\} | Any line with “{4,8}” |
| A{4,8} | Any line with “A{4,8}” |
| Regular Expression | Class | Type | Meaning |
| _ | |||
| . | all | Character Set | A single character (except newline) |
| ^ | all | Anchor | Beginning of line |
| $ | all | Anchor | End of line |
| [...] | all | Character Set | Range of characters |
| * | all | Modifier | zero or more duplicates |
| \< | Basic | Anchor | Beginning of word |
| \> | Basic | Anchor | End of word |
| \(..\) | Basic | Backreference | Remembers pattern |
| \1..\9 | Basic | Reference | Recalls pattern |
| _+ | Extended | Modifier | One or more duplicates |
| ? | Extended | Modifier | Zero or one duplicate |
| \{M,N\} | Extended | Modifier | M to N Duplicates |
| (…|…) | Extended | Anchor | Shows alteration |
| _ | |||
| \(…\|…\) | EMACS | Anchor | Shows alteration |
| \w | EMACS | Character set | Matches a letter in a word |
| \W | EMACS | Character set | Opposite of \w |
| Regular Expression | ||
| Class | Type | Meaning |
| \t | Character Set | tab |
| \n | Character Set | newline |
| \r | Character Set | return |
| \f | Character Set | form |
| \a | Character Set | alarm |
| \e | Character Set | escape |
| \033 | Character Set | octal |
| \x1B | Character Set | hex |
| \c[ | Character Set | control |
| \l | Character Set | lowercase |
| \u | Character Set | uppercase |
| \L | Character Set | lowercase |
| \U | Character Set | uppercase |
| \E | Character Set | end |
| \Q | Character Set | quote |
| \w | Character Set | Match a “word” character |
| \W | Character Set | Match a non-word character |
| \s | Character Set | Match a whitespace character |
| \S | Character Set | Match a non-whitespace character |
| \d | Character Set | Match a digit character |
| \D | Character Set | Match a non-digit character |
| \b | Anchor | Match a word boundary |
| \B | Anchor | Match a non-(word boundary) |
| \A | Anchor | Match only at beginning of string |
| \Z | Anchor | Match only at EOS, or before newline |
| \z | Anchor | Match only at end of string |
| \G | Anchor | Match only where previous m//g left off |
An example of ereg_replace for changing the value of page in an url ex: domain.com/index.php?page=3
ereg_replace(‘page=[0-9]+’, ‘page=’.$d, $uri);
First time I got this error Data truncated for column. I’m using mysql version 5 and I got a simple query like this:
$val1= 1;
$val2 = 3;
INSERT INTO TBL(‘val1′, ‘val2′) VALUES ($val1, $vall2);
Notice the variable name for $val2 in the query? I fixed the variable name to $val2 and problem solved.
I really don’t know what causes this but that solves my problem.
I also notice on mysql 5 it returns an error ‘data type’ when let say I got a field that’s integer and upon saving the variable value for that is empty.
This week’s lesson is about God’s given gift like spiritual gift w/c others were priviledged to have it that was use for God’s ministry. Now my question is, is it only exclusive for Adventist? Because this morning in our lesson study it was pointed out by one of the brethren that it was only given by God to Adventist because we’re the only ones who believe in him. But how about for other religions, sects or people who also believe in the bible, believe in God and worshiped him? They don’t have it?
A non Adventst co-worker of mine once said that we can look at religion in this way, like an azimuth, there are different religions believing in God, have different names for it but points to only ONE God.
I’m just wondering, since we were actually descendants of Israel, why Israelites are not Adventist or rather why us Adventist don’t have the same religion as them ? And does it mean too they don’t have the gift from God?
I’m sorry but I find it too prejudice hearing it that it’s only exclusive for Adventist, since I’ve got lots of non-adventist friends and people I work with especially if they’re the ones who hear it, how can we evangelize and share the message of God in that way?
So going back to my question is it only exclusive for Adventist? Or everybody in this world have it?
Share us your thoughts, opinions, comments, or violent reactions, if there are any
![]()