in reply to Re^3: Regex with multiple pattern omissions
in thread Regex with multiple pattern omissions

You're right, I didn't realize what the () were for.. I thought they were necessary anytime arguments are passed in. Looking back, I'll bet this has been the unknown source of some of my debugging frustration in the past.. Thanks for the helpful pointers! I usually have a healthy OCD for indenting, when I pasted the code it looked like the formatting got weird in the entry form, so i deleted the tabs..
  • Comment on Re^4: Regex with multiple pattern omissions

Replies are listed 'Best First'.
Re^5: Regex with multiple pattern omissions
by Marshall (Canon) on Jan 11, 2011 at 09:21 UTC
    so i deleted the tabs..
    I would not use tabs within code! In the ancient days, decades ago, this was seen because it conserved bytes, one \t char instead of a bunch of space characters. A consideration if you are using paper tape! The problem is that how many spaces a tab character represents is variable - there is no "standard" for this.

    In your editor, find the setting where it says "convert tabs to spaces" and use it. That way, you can still hit your tab button when entering code, but space characters are what actually goes into the file. That way your file will be portable and the formatting will look the same, provided that the other system is using a fixed width font -which is what you should be using for writing code.