Tuesday, December 1, 2009
Thursday, April 16, 2009
All About Neobux
First of all I am writing this post because I haven't written anything from a long time lol!!This is a bit kind of informative post and will be helpful to all newbie on the neobux.Let me first give you the basic details of about the neobux.
Payout processor : AlertPay, Paypal
Minimum PTC : $0.01/$0.015 (This refers to the value you earn to click)
Minimum payout : $2.00 (Minimum balance in your account to request cashout)
Referral Commission: 1 Level $0.005/ $0.01
Payout duration: INSTANT PAYMENT!!!!
Level 1 means that the people which are direct refferals to you(not the refferals of your refferal).Ya,the site pays you instantly 100% of the time It has a very good payment system supports the two payment processors Alertpay and Paypal It pays in U.S. Dollars. It is the one of the most trusted sites after bux.to(in its early career) but bux.to has now almost failed and is about to become scam.Neobux has substain cheaters,hackers and autoclicker over the period of time.
Neobux has three type of memberships available.
1. Standard Membership: Every member when registered gain this membership.You get 4-5 ads daily in this membership.You get 0.01 $ to 0.015 $ for each ad that you click.You get 0.005 cent for each ad your refferal click.You can either get refferals when they click on your banner and register or put your username in the referer box when they register.These refferals are called yor Direct refferals they remain with you for lifetime unless there account is terminated due to inactivity or some other reason.You can also rent refferals on neobux.The rate for renting refferals for 30 days is 0.30 $/per refferal.Its hard to make profit when you are standard.I will recommend you to go for golden when you have about 2000 refferals.
2. Golden Membership: You can upgrade to golden membership,the charge to upgrade for golden is 90$/per year.When you pay 90$ you become a golden member for 1 year.There comes handful of benefits with this membership.You will get 14-15 ads daily in this membership.You get 0.01 $ for your each click and 0.01 $ for your refferal each click.In addtion to these you will get a 10% of direct purchase of your direct/rented refferals,which means that if your refferal do direct purchase of 100$ you will get 10$ automatically.You can rent each refferal for a month(30 days) for only 0.27$.
3.Ultimate Membership: You can only upgrade to ultimate when you are already golden,the charrge of upgrade is 810$/per year.You will get 24-25 ads daily in this membership.You get 0.01$ for your each click and 0.01$ for your refferals each click.In addtion you get 50 % of the direct purchase of your direct/rented refferals. You can rent each refferal for a month(30 days)for only 0.24 $.You also get two other facilities also one is rental queue and the other is vacation mode.
There are other types of memberships also other than these three. So,for More Information Enlarge this image and see
Note: I will extend ths post later with more useful information.Constructive criticism and comments are heartily invited. Read More......
Labels: Information, NeoBux, Refferals
Tuesday, March 24, 2009
My plugin for multiclicker - Aditya
MY PLUGINS FOR MULTICLICKER-ADITYA
MagiBux24/03.2009
Here
Jaymans Freebie World 24/03.2009
Here
TrafficLeaderBux 24/03.2009
Here
Bux Junction 24/03.2009
Here
EurekaBux 24/03.2009
Here
MegaBux.Brazil 24/03.2009
Here
DutchBux 24/03.2009
Here
BuxPut 24/03.2009
Here
CherryBucks 24/03.2009
Here
Package 1 11/04/2009
Contain 18 plugins of sites
[Register under author by Clicking on the name]
Download Package 1 HERE
Download more plugins here
Note:See The amazing site payee.me Instant Payments For More details click here
Read More......
Monday, March 23, 2009
Payee.me an awesome site
Payee.me
Look Guys It is an awesome site and a new revolution in PTC world .
I gave you some reasons to join this site :
1. It has Instant payments.
2. It has no minimum payouts.
3. It allows you to make multiple accounts from one IP address.
4. It allow chinese members.
5. It accepts alertpay.
6. There is no limit on ads served, you can get as many as 80 ads per day, some day.
7. It gives you 1 cent per your click and 0.5 cents per refferal click.
My Payment Proof(31st March 2009):
Click for larger view
I invested $ 2 and earn $ 3.30 in just 10 days
Requirements :
All you need is to have a minimum 2 $ in your alertpay account to begin your success story.
I can give you some awesome tricks(may be i can give u some automated method(no guarentee/warentee)) and tips (these offer are till 1 april 2009 untill further news)to make profit here,CONDITION YOU MUST REGISTER AS MY REFFERAL HERE OR USING ABOVE BANNER OR TYPE dushyant267 IN REFERER BOX.
use the below form to contact me (don't forget to give your username that will appear in my refferal list and your correct email id through which i will contact you)
Thanks
Labels: Payee.me
Saturday, January 31, 2009
Solid Ways Of Making Online Money
Here I am listing some of the solid ways of making money which I can surely suggest that you should join and start earning today these all ways(information) are based my exprience of making online money from past 15 months.
Here we go:-
1. Adbrite:
If you are interested in blogging or you are already on blogger,wordpress or typepad and your blog is popular and you are get 1000-2000 visitors everyday or having a google page rank of 2-3 then i suggest you join Adbrite for motesizing your site you can make from 1-2 $ of real money everyday.
You can join adbrite here.
2.NeoBux:
It is the most trusted site in PTC bussiness(Paid to click Sites) and I can gaurrente you that you can make a good amount of money through this site. On this site,you get 4-5 ads daily ,which you have to view for 30 seconds and 1 cent is credited in your account per ads respectively.Remember,you cannot view more then one add at a time.
You can join NeoBux here.
3.LinkWorth:
It is a site that sells text ads ,ads in your text and various other type of ads.
Condition: You must have your own site or blog first .
You can become its partner and start selling the ads on your site.They have got flat rate system which means that you will get a fixed amount of money per month for the ad which you are selling on your site. You have two types of partner system on this site one is normal partner and the other is preffered partner. Normal Partner has 70/30 split ratio which means that is the advertiser is giving 100 $ for a ad then you will get 70 dollars and linkworth will get 30 $ .In preffered partner, there is 50/50 split raiton which means that you will get for 100$ payment by the advertiser you will get 50$ and linkworth will get 50$ .I will recommend that you join as preffered partner because it has certaing advantages such as they(linkworth staff) will list your blog/site in a higher ranking sites which will help you get more ads and an ad for a longer duration.
You can join linkworth here.
4. RupeeMail :
RuppeMail is another good way to Earn Money.They are for Indian residents only.They generally pay you 25 paise per mail.You have to give your mail address, they will send you mails you will get money for viewing the mails.
Join here........
5. Scour :
It is search engine service which pays you for every search you do on scour.The procedure is that you have to search,vote or comment on any search to win points and then you convert your points to money.If you will join under me than I can give you a working auto searcher(that will do searches automatically for you.Just run the exe file and let it increase your points/money) to you,Just join under me and send me you username(name through which you have signed under me) and i will mail you the auto searcher Don't froget to mention your mail address..
Mail me your details on 6103438@gmail.com.
Join here
Note: This post is not yet complete .I will edit and expand this post soon.
Labels: Adbrite, LInkworth, Money, NeoBux, Online Money
Monday, December 15, 2008
My plugin for multiclicker - sendtods
PAYPAL
Condition for getting plugins who's links are not given here: You should be either my refferal or donate 1 $ on the above account.....and send me PM(private message) here with your name that will appear in my refferal list (or amount that you have donated and the mail address from which you have donated in case of donation)and the mail address on which plugin is to be sent.(send the proof in PM if you have donated).
Some Knowledge:
How to check anti-cheaters link number see this photo:
Click to enlarge
Note:Payee.me is awesome site i will be soon posting its proof for instant payements for more details => click here
Download Aditya's Plugins From here
Here is the list of my plugins....
DualBux.com
Publish Date:12/12/2008
Last check: 14/12/2008
Last update: 12/12/2008
Cheat link=No.(Not have any cheat)
status:working(pay instantly to standard member)
refer me here:referer= sendtods
or by registering through this link:
http://www.dualbux.com/?r=sendtods
Wordofbux.com
Publish Date:12/12/2008
Last check:17/12/2008
Last update: 17/12/2008
Cheat link=No.(Not have any cheat)
status:working[1$ payout limit]
refer me here : referer = sendtods
or by registering through this link:
http://www.worldofbux.com/register.php?r=sendtods
Clickmybux.com
Publish Date:07/12/2008
Last check:07/12/2008
Last update: 07/12/2008
Cheat link=Yes.(Keep an eye on it)
If it changes report in to me here
status:working
refer me here : referer = sendtods
or by registering through this link:
http://www.clickmybux.com/register.php?r=sendtods
Download Link :
Standard Members:
http://ed739304.linkbucks.com
BeanyBux.com
Publish Date:07/12/2008
Last check:16/12/2008
Last update: 16/12/2008[Cheat link changed]
Cheat link=Yes.(Keep an eye on it)
If it changes report in to me here
status:working
refer me here : referer = sendtods
or by registering through this link:
http://www.beanybux.com/?r=sendtods
Thegoldsafe.com
Publish Date:16/12/2008
Last check:16/12/2008
Last update: 16/12/2008
Cheat link=No.(Not have any cheat link)
status:working
refer me here : referer = sendtods
or by registering through this link:
http://www.thegoldsafe.com/?r=sendtods
Download Link :
Standard Members:
http://4d573a74.linkbucks.com
Oldschoolbux.com(Now OsoBux.com)[Not working Now]
Publish Date:16/12/2008
Last check:16/12/2008
Last update: 16/12/2008
Cheat link=No.(Not have any cheat link)
status:working
refer me here : referer = sendtods
or by registering through this link:
http://www.oldschoolbux.com/?r=sendtods
FeelBux.com
Publish Date:17/12/2008
Last check:17/12/2008
Last update: 17/12/2008
Cheat link=No.(Not have any cheat link)
status:working (payout $5 and .125 $ per click for standard members)
refer me here : referer = sendtods
or by registering through this link:
http://feelbux.com/register.php?r=sendtods
Download Link :
Standard Members:
http://22a0111e.linkbucks.com
BuxHits.com
Publish Date:18/12/2008
Last check:18/12/2008
Last update: 18/12/2008
status:working (ads 30+ daily,payout $10 and .01 $ per click,only pays to premium )
Cheat link=No.(Not have any cheat link)
Refer me here : referer = sendtods
or by registering through this link:
Standard Members:
http://4f7d7216.linkbucks.com
Premium Members:
http://88ea4416.linkbucks.com
Hawkinsbux.com
Publish Date:18/12/2008
Last check:18/12/2008
Last update: 18/12/2008
Cheat link=Yes.(Keep an eye on it)
If it changes report in to me here
status:working (payout $5 and .01 $ per click,Pays within 24 hrs)
Refer me here : referrer = sendtods
or by registering through this link:
Standard Members:
http://b793828d.linkbucks.com
Premium Members:
http://7f2f304c.linkbucks.com
Incrasebux.com
Publish Date:20/12/2008
Last check:20/12/2008
Last update: 20/12/2008
status:working ($3.99 payout,pay within 2-10 days(they say that))
Cheat link=No.(Not have any cheat link)
Refer me here : referer = sendtods
or by registering through this link:
Standard Members:
http://27bef0a6.thesefiles.com
Premium Members:
http://4b61a0b8.linkbucks.com
Dailycent.com
Publish Date:23/12/2008
Last check:25/12/2008
Last update: 25/12/2008
status:working ($2.00 payout)
Cheat link=No.(Not have any cheat link)
Refer me here : referer = sendtods
or by registering through this link:
Standard Members:
http://8ed0d36f.thesefiles.com
Premium Members:
http://78fa9fc2.linkbucks.com
Mainbux.com
Publish Date:23/12/2008
Last check:23/12/2008
Last update: 23/12/2008
Cheat link=No.(Not have any cheat link)
status:working (payout $6.99)
Refer me here : referrer = sendtods
or by registering through this link:
Standard Members:
http://b0492c7d.linkbucks.com
BuxCL.com
Publish Date:26/12/2008
Last check:26/12/2008
Last update: 26/12/2008
Cheat link=No.(Not have any cheat link)
status:working (payout $10.00)
Refer me here : referrer = sendtods
or by registering through this link:
Standard Members:
http://aa7c345b.thesefiles.com
MalBux.com
Publish Date:01/01/2009
Last check:01/01/2009
Last update: 01/01/2009
Cheat link=No.(Not have any cheat link)
status:working (payout $10.00)
Refer me here : referrer = dushyant267
or by registering through this link:
Information:
or by clicking on this banner
Note:http://www.seriouxclickers.com is scam Beleive me.They will delete your account when you will almost reach a cashout.
Read More......
Monday, December 8, 2008
Tutorial- Regular expression.
Navigation
| | This tutorial is just one big HTML file, with a few graphics used along the way. Just scroll down to read it. Printing may break some lessons in the middle--but then, you didn't pay much to get this. |
Who is this tutorial for?
| | This tutorial is aimed at users and programmers who have begun to work with tools that use regular expressions, but who are not quite comfortable with the intricacies of them. Even users who may have used regular expressions in the past, but have forgotten some of the details can benefit from this as a refresher. After completing this tutorial you will not yet be an expert in using regular expressions to best advantage. But this tutorial combined with lots of practice with varying cases is about all you need to be an expert. The concepts of regular expressions are extremely simple and powerful. . . it is their application that takes some work. |
Just what is a regular expression anyway?
| | Read the tutorial to get the long answer. The short answer is that a regular expression is a compact way of describing complex patterns in texts. You can use them to search for patterns and, once found, to modify the patterns in complex ways. They can also be used to launch programmatic actions that depend on patterns. A tongue-in-cheek comment by programmers is worth thinking about: "Sometimes you have a programming problem and it seems like the best solution is to use regular expressions; now you have two problems." Regular expressions are amazingly powerful and deeply expressive. That is the very reason writing them is just as error-prone as writing any other complex programming code. It is always better to solve a genuinely simple problem in a simple way; when you go beyond simple, think about regular expressions. |
What tools use regular expressions?
| | A large number of tools incorporate regular expressions as part of their functionality. Unix-oriented command line tools like There are a few variations in regular expression syntax between different tools that use them. Some tools add enhanced capabilities that are not available everywhere. In general, for the simplest cases, this tutorial will use examples based around |
Note on presentation
| | For purposes of presenting examples in this tutorial, regular expressions described will be surrounded by forward slashes. This style of delimiting regular expressions is used by
Read ahead to understand this example, for now just understand that the actual regular expression is everything between the slashes. Many examples will be accompanied by an illustration that shows a regular expression, and a text that is highlighted for every match on that expression. |
Matching Patterns in Text: The Basics
Character literals
| The very simplest pattern matched by a regular expression is a literal character or a sequence of literal characters. Anything in the target text that consists of exactly those characters in exactly the order listed will match. A lower case character is not identical with its upper case version, and vice versa. A space in a regular expression, by the way, matches a literal space in the target (this is unlike most programming languages or command-line tools, where spaces separate keywords). |
"Escaped" characters literals
| A number of characters have special meanings to regular expressions. A symbol with a special meaning can be matched, but to do so you must prefix it with the backslash character (this includes the backslash character itself: to match one backslash in the target, your regular expression should include "\\"). |
Positional special characters
| Two special characters are used in almost all regular expression tools to mark the beginning and end of a line: caret (^) and dollarsign ($). To match a caret or dollarsign as a literal character, you must escape it (i.e. precede it by a backslash "\"). An interesting thing about the caret and dollarsign is that they match zero-width patterns. That is the length of the string matched by a caret or dollarsign by itself is zero (but the rest of the regular expression can still depend on the zero-width match). Many regular expression tools provide another zero-width pattern for word-boundary (\b). Words might be divided by whitespace like spaces, tabs, newlines, or other characters like nulls; the word-boundary pattern matches the actual point where a word starts or ends, not the particular whitespace characters. |
The "wildcard" character
| In regular expressions, a period can stand for any character. Normally, the newline character is not included, but most tools have optional switches to force inclusion of the newline character also. Using a period in a pattern is a way of requiring that "something" occurs here, without having to decide what. Users who are familiar with DOS command-line wildcards will know the question-mark as filling the role of "some character" in command masks. But in regular expressions, the question-mark has a different meaning, and the period is used as a wildcard. |
Grouping regular expressions
| A regular expression can have literal characters in it, and also zero-width positional patterns. Each literal character or positional pattern is an atom in a regular expression. You may also group several atoms together into a small regular expression that is part of a larger regular expression. One might be inclined to call such a grouping a "molecule," but normally it is also called an atom. In older Unix-oriented tools like |
Character classes
| Rather than name only a single character, you can include a pattern in a regular expression that matches any of a set of characters. A set of characters can be given as a simple list inside square brackets, e.g. Many regular expression tools also provide escape-style shortcuts to the most commonly used character class, such as |
Complement operator
| The caret symbol can actually have two different meanings in regular expressions. Most of the time, it means to match the zero-length pattern for line beginnings. But if it is used at the beginning of a character class, it reverses the meaning of the character class. Everything not included in the listed character set is matched. |
Alternation of patterns
| Using character classes is a way of indicating that either one thing or another thing can occur in a particular spot. But what if you want to specify that either of two whole subexpressions occur in a position in the regular expression? For that, you use the alternation operator, the vertical bar ("|"). This is the symbol that is also used to indicate a pipe in Unix/DOS shells, and is sometimes called the pipe character. The pipe character in a regular expression indicates an alternation between everything in the group enclosing it. What this means is that even if there are several groups to the left and right of a pipe character, the alternation greedily asks for everything on both sides. To select the scope of the alternation, you must define a group that encompasses the patterns that may match. The example illustrates this. |
The basic abstract quantifier
| One of the most powerful and common things you can do with regular expressions is to specify how many times an atom occurs in a complete regular expression. Sometimes you want to specify something about the occurrence of a single character, but very often you are interested in specifying the occurrence of a character class or a grouped subexpression. There is only one quantifier included with "basic" regular expression syntax, the asterisk ("*"); in English this has the meaning "some or none" or "zero or more." If you want to specify that any number of an atom may occur as part of a pattern, follow the atom by an asterisk. Without quantifiers, grouping expressions doesn't really serve as much purpose, but once we can add a quantifier to a subexpression we can say something about the occurrence of the subexpression as a whole. Take a look at the example. |
Matching Patterns in Text: Intermediate
More abstract quantifiers
| In a certain way, the lack of any quantifier symbol after an atom quantifies the atom anyway: it says the atom occurs exactly once. Extended regular expressions (which most tools support) add a few other useful numbers to "once exactly" and "zero or more times." The plus-sign ("+") means "one or more times" and the question-mark ("?") means "zero or one times." These quantifiers are by far the most common enumerations you wind up naming. If you think about it, you can see that the extended regular expressions do not actually let you "say" anything the basic ones do not. They just let you say it in a shorter and more readable way. For example, " |
Numeric quantifiers
| Using extended regular expressions, you can specify arbitrary pattern occurrence counts using a more verbose syntax than the question-mark, plus-sign, and asterisk quantifiers. The curly-braces ("{" and "}") can surround a precise count of how many occurrences you are looking for. The most general form of the curly-brace quantification uses two range arguments (the first must be no larger than the second, and both must be non-negative integers). The occurrence count is specified this way to fall between the minimum and maximum indicated (inclusive). As shorthand, either argument may be left empty: if so the minimum/maximum is specified as zero/infinity, respectively. If only one argument is used (with no comma in there), exactly that number of occurrences are matched. |
Backreferences
| One powerful option in creating search patterns is specifying that a subexpression that was matched earlier in a regular expression is matched again later in the expression. We do this using backreferences. Backreferences are named by the numbers 1 through 9, preceded by the backslash/escape character when used in this manner. These backreferences refer to each successive group in the match pattern, as in It is important to note something the example illustrates. What gets matched by a backreference is the same literal string matched the first time, even if the pattern that matched the string could have matched other strings. Simply repeating the same grouped subexpression later in the regular expression does not match the same targets as using a backreference (but you have to decide what it is you actually want to match in either case). Backreferences refer back to whatever occurred in the previous grouped expressions, in the order those grouped expressions occurred. Because of the naming convention (\1-\9), many tools limit you to nine backreferences. Some tools allow actual naming of backreferences and/or saving them to program variables. The more advanced parts of this tutorial touch on these topics |
Don't match more than you want to
| Quantifiers in regular expressions are greedy. That is, they match as much as they possibly can. Probably the easiest mistake to make in composing regular expressions is to match too much. When you use a quantifier, you want it to match everything (of the right sort) up to the point where you want to finish your match. But when using the "*", "+" or numeric quantifiers, it is easy to forget that the last bit you are looking for might occur later in a line than the one you are interested in. |
Tricks for restraining matches
| Often if you find that your regular expressions are matching too much, a useful procedure is to reformulate the problem in your mind. Rather than thinking about "what am I trying to match later in the expression?" ask yourself "what do I need to avoid matching in the next part?" Often this leads to more parsimonious pattern matches. Often the way to avoid a pattern is to use the complement operator and a character class. Look at the example, and think about how it works. The trick here is that there are two different ways of formulating almost the same sequence. You can either think you want to keep matching until you get to XYZ, or you can think you want to keep matching unless you get to XYZ. These are subtly different. For people who have thought about basic probability, the same pattern occurs. The chance of rolling a 6 on a die in one roll is 1/6. What is the chance of rolling a 6 in six rolls? A naive calculation puts the odds at 1/6+1/6+1/6+1/6+1/6+1/6, or 100%. This is wrong, of course (after all, the chance after twelve rolls isn't 200%). The correct calculation is "how do I avoidgetting a 6 is the same chance as not avoiding it (or about 66%). In fact, if you imagine transcribing a series of dice rolls, you could apply a regular expression to the written record, and similar thinking applies. rolling a 6 for six rolls?" -- i.e. 5/6*5/6*5/6*5/6*5/6*5/6, or about 33%. The chance of |
Comments on modification tools
| Not all tools that use regular expressions allow you to modify target strings. Some simply locate the matched pattern; the mostly widely used regular expression tool is probably Of the tools that allow you to modify target text, there are a few differences to keep in mind. The way you actually specify replacements will vary between tools: a text editor might have a dialog box; command-line tools will use delimiters between match and replacement, programming languages will typically call functions with arguments for match and replacement patterns. Another important difference to keep in mind is of what is getting modified. Unix-oriented command-line tools typically utilize pipes and STDOUT for changes to buffers, rather than modify files in-place. Using a |
A note on modification examples
| For purposes of this tutorial, examples will continue to use the Examples will consist of the modification command, an input line, and an output line. The output line will have any changes emphasized. Also, each input/output line will be preceded by a less-than or greater-than symbol to help distinguish them (the order will be as described also), which is suggestive of redirection symbols in Unix shells. |
A literal-string modification example
| Let us take a look at a couple modification examples that build on what we have already covered. This one simply substitutes some literal text for some other literal text. The search-and-replace capability of many tools can do this much, even without using regular expressions. |
A pattern-match modification example
| Most of the time, if you are using regular expressions to modify a target text, you will want to match more general patterns than just literal strings. Whatever is matched is what gets replaced (even if it is several different strings in the target) |
Modification using backreferences
| It is nice to be able to insert a fixed string everywhere a pattern occurs in a target text. But frankly, doing that is not very context sensitive. A lot of times, we do not want just to insert fixed strings, but rather to insert something that bears much more relation to the matched patterns. Fortunately, backreferences come to our rescue here. You can use backreferences in the pattern-matches themselves, but it is even more useful to be able to use them in replacement patterns. By using replacement backreferences, you can pick and choose from the matched patterns to use just the parts you are interested in. To aid readability, subexpressions will be grouped with bare parentheses (as with Perl), rather than with escaped parentheses (as with |
Another warning on mismatching
| This tutorial has already warned about the danger of matching too much with your regular expression patterns. But the danger is so much more serious when you do modifications, that it is worth repeating. If you replace a pattern that matches a larger string than you thought of when you composed the pattern, you have potentially deleted some important data from your target. It is always a good idea to try out your regular expressions on diverse target data that is representative of your production usage. Make sure you are matching what you think you are matching. A stray quantifier or wildcard can make a surprisingly wide variety of texts match what you thought was a specific pattern. An sometimes you just have to stare at your pattern for a while, or find another set of eyes, to figure out what is really going on even after you see what matches. Familiarity might breed contempt, but it also instills competence. |
Advanced Regular Expression Extensions
About advanced features
| Some very useful enhancements are included in some regular expression tools. These enhancements often make the composition and maintenance of regular expression considerably easier. But check with your own tool to see what is supported. The programming language Perl is probably the most sophisticated tool for regular expression processing, which explains much of its popularity. The examples illustrated will use Perl-ish code to explain concepts. Other programming languages, especially other scripting languages such as Python, have a similar range of enhancements. But for purposes of illustration, Perl's syntax most closely mirrors the regular expression tools it builds on, such as |
Non-greedy quantifiers
| Earlier in the tutorial, the problems of matching too much were discussed, and some workarounds were suggested. Some regular expression tools are nice enough to make this easier by providing optional non-greedy quantifiers. These quantifier grab as little as possible while still matching whatever comes next in the pattern (instead of as much as possible). Non-greedy quantifiers have the same syntax as regular greedy ones, except with the quantifier followed by a question-mark. For example, a non-greedy pattern might look like: " One little thing to look out for is the fact that the pattern " |
Pattern-match modifiers
| We already saw one pattern-match modifier in the modification examples: the global modifier. In fact, in many regular expression tools, we should have been using the "g" modifier for all our pattern matches. Without the "g", many tools will match only the first occurrence of a pattern on a line in the target. So this is a useful modifier (but not one you necessarily want to use always). Let us look at some others. As a little mnemonic, it is nice to remember the word "gismo" (it even seems somehow appropriate). The most frequent modifiers are:
The o option is an implementation optimization, and not really a regular expression issue (but it helps the mnemonic). The single-line option allows the wildcard to match a newline character (it won't otherwise). The multiple-line option causes "^" and "$" to match the begin and end of each line in the target, not just the begin/end of the target as a whole (with |
Changing backreference behavior
| Backreferencing in replacement patterns is very powerful; but it is also easy to use more than nine groups in a complex regular expression. Quite apart from using up the available backreference names, it is often more legible to refer to the parts of a replacement pattern in sequential order. To handle this issue, some regular expression tools allow "grouping without backreferencing." A group that should not also be treated as a back reference has a question-mark colon at the beginning of the group, as in " |
Naming backreferences
| The language Python offers a particularly handy syntax for really complex pattern backreferences. Rather than just play with the numbering of matched groups, you can give them a name. The syntax of using regular expressions in Python is a standard programming language function/method style of call, rather than Perl- or |
Lookahead assertions
| Another trick of advanced regular expression tools is "lookahead assertions." These are similar to regular grouped subexpression, except they do not actually grab what they match. There are two advantages to using lookahead assertions. On the one hand, a lookahead assertion can function in a similar way to a group that is not backreferenced; that is, you can match something without counting it in backreferences. More significantly, however, a lookahead assertion can specify that the next chunk of a pattern has a certain form, but let a different subexpression actually grab it (usually for purposes of backreferencing that other subexpression. There are two kinds of lookahead assertions: positive and negative. As you would expect, a positive assertion specifies that something doesdoes not come next. Emphasizing their connection with non-backreferenced groups, the syntax for lookahead assertions is similar: |
Making regular expressions more readable
| In the later examples we have started to see just how complicated regular expressions can get. These examples are not the half of it. It is possible to do some almost absurdly difficult-to-understand things with regular expression (but ones that are nonetheless useful). There are two basic facilities that some of the more advanced regular expression tools use in clarifying expressions. One is allowing regular expressions to continue over multiple lines (by ignoring whitespace like trailing spaces and newlines). The second is allowing comments within regular expressions. Some tools allow you to do one or another of these things alone, but when it gets complicated, do both! The example given uses Perl's extend modifier to enable commented multi-line regular expressions. Consult the documentation for your own tool for details on how to compose these. |
Labels: Regular Expressions, Tutorial
Follow Me
Search this Site
Hire Me
FEEDJIT Live Traffic Map
Ads
Online Users
FEEDJIT Live Traffic Feed
Subscribe
Labels
- Adbrite (1)
- Aditya (1)
- Age of Empires III (1)
- Assassin's Creed (1)
- ATI HD 4550 vs nVidia 9400 GT (1)
- ATI HD 4670 (1)
- Call Of Duty 4 (1)
- Crysis (2)
- Dead Space (1)
- Downloads (1)
- Fable II (1)
- Far Cry 2 (1)
- FIFA 08 (1)
- FireFox (1)
- Game Review (17)
- Google (2)
- Graphics Card Review (3)
- Halo 3 (1)
- HTC Touch Diamond (1)
- Increase Speed (1)
- Information (1)
- Internet Explorer (1)
- LG KT520 (1)
- LInkworth (1)
- Mobile Phone Review (6)
- Money (1)
- Need for Speed: Carbon (1)
- Need for Speed: Most Wanted (1)
- Need for Speed: Pro Street (1)
- NeoBux (2)
- News (1)
- Nokia 5320 XpressMusic (1)
- Online Money (1)
- Payee.me (1)
- Philips Aurea 42PFL9903H 42in LCD TV (1)
- Plugins (2)
- Pocket Power (1)
- Prince of Persia (1)
- Quantum of Solace: The Video Game (1)
- Refferals (1)
- Regular Expressions (1)
- S.T.A.L.K.E.R. (1)
- Samsung LE46A756 46in LCD TV (1)
- Samsung U800 (1)
- Secrets (1)
- Television Reviews (2)
- The Elder Scrolls IV (1)
- Tips (4)
- Tricks (3)
- Tutorial (1)
- utorrent (1)
- Video Chatting (1)
- Voice Chat (1)
- Windoows (1)
- Windows 7 (1)
- Windows Vista (1)
- Windows XP (1)
- Xbox (1)
- XFX 9800 GTX Black Edition (1)