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 did Adam and Eve win at Hide and Seek?
Answer: I like the Pulpit Commentary on this. It says that God called Adam because God wanted to bring him to confession.


  Adam's absence was a clear proof
  that something was wrong. Hitherto he had always welcomed the Divine
  approach. "And said unto him, Where art thou?" Not as if ignorant of
  Adam's hiding-place, but to bring him to confession.


You can't play a hide-and-seek game with God (Hebrews 4:13) because He is omnipresent(Psalm 139:8). God demanded confession from Adam. God also wanted to continue the fellowship even though Adam tried to avoid Him. God was seeking Adam because God still loved him despite his disobedience . God wanted to help Adam and Eve on how to cover their nakedness. Not yet skilled or aware of how to make garments, they tried to cover themselves in vain. God helped them by providing garments of animal skin. 

Where art thou? God is always calling us to repent and come to Him. It is our responsibility to response to His call and confess all our sins.


  Revelation 3:20 (NKJV) Behold, I stand at the door and knock. If
  anyone hears My voice and opens the door, I will come in to him and
  dine with him, and he with Me.