Good day stack overflow.

I'm a noob in using regex and here is my problem - I need to check a password if it contains 4 consecutive characters. so far what I have just covered is regarding the digits. Here is my regex:

ascending digits - ^.?(?:0123|1234|2345|3456|4567|5678|6789).$

descending digits - ^.?(?:9876|8765|7654|6543|5432|4321|3210).$

This works only for the digits. I know this is already an overkill in regex so I dont want to do it with the letters. It will be waaay too overkill if I do that.

abcdblah //true because of abcd

helobcde //true because of bcde

dcbablah //true beacause of dcba

heloedcb //true because of edcb

Any help would be highly appreciated. Thanks stackoverflow.


Question: How to change all the blue colors of RWD theme to another color?
Answer: I don't care if this is the worst answer ever written here. It is beyond preposterous that to edit something as simple as a background color, not only do you have to install ruby, and install compass, just to edit one line of a SASS file? I guess editing the precious little .scss file in Textwrangler and replacing it in the proper folder just can't work can it? We have to RECOMPILE?!? Thanks EBAY also, for bringing this on board.