Regular Expression Documentaion


Regular Expressions are super powerful, and are included in most programming languages.
Regardless of what programming language you use, regular expressions will make certain text processing tasks a breeze.
If you have ever looped through every character in a string of text searching for specific characters just stop and learn regular expressions.
You will be so glad you did.





Practice in your browser

You can practice writing javascript regular expressions in your browsers' javascript console (Ctrl+Shift+J) in Chrome.
Phone number example:
Navigate to: which is a list of US Senators.
Open your javascript console and type:

var regx1 = /((\d)?\(?\d{3}\)?[\s\-\.]\d{3}[\s\-\.]\d{4})/g;

Press enter and then type

document.documentElement.innerHTML =  document.documentElement.innerHTML.replace(regx1,"<h1>$1</h1>");

Press enter and all of the phone numbers will be wrapped in H1 tags.

Note: This could be accomplished much more easily in jQuery, however regular expressions are built in to practically every programming language and offer a lot of power for pattern matching and substitution.
This page for instance has the same class of contenttext for all of the table cell data. Even if the phone numbers had a separate class, we have no guarantee that there isn't other data in the cell. By using a regular expression we can match only the pattern we are interested in using very a very rigid expression.

(Thanks to everyone who comments)


Really Good Post

visit this

Nice Post

Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future. apk hook I am interested in such topics so I will address page where it is cool described.
spotify music
popcorn time movies
supersu me
tutuapp pokemon go apk
icq to go
vshare ios 10
download bigo

Superb job

I really inspired by your appreciable work. Your post is very awesome. The information that you have shared with us is very good and interesting. You are doing a great job. Keep it up

BTEUP Admit Card or WBUT Odd Sem Result

Thank you for the long and detailed post.


Interesting! I love your post. Thank you very much!
On the Friv 5 Games Moto X3M: Hop on your dirt bike and ride over jumps, do tricks, and try not to fly off! Memorize the course and execute your stunts perfectly.. Play Moto x3m - Show off your speed and clever use of physics on friv4school 2017
Run , jump and ignore certain laws of physics through even more courses in Run 3 on kizi 100.

Kate Young

Thanks gentalman yours post is realy informative and helpful too.
Welcome to zoxy 2 brands · about · showroom · news · contact · wholesale ·
FRIV GAMES - Play free friv 2 online games flash at Slitherio online. This is the best solution for having fun. Now play and feel!

Marriage Wishes For Sister

Its a great one and also a beatifully crafted one. looking forward for more from this website.I read all of article of the site the article was very nice go and check it out!
best marriage wishes for sister 2016

2017 Maattu Pongal video wishes

Lionel messi net worth

Nice Article thanks for sharing this best blog with me visit this also

messi net worth


The share your really gives us excitement. Thanks for your sharing. If you feel tired at work or study try to participate in our games to bring the most exciting feeling. Thank you!
hotmail login | red ball


Everyone should learn regular expressions. It's worth a lot.
Keep posting!

ECO 365 week 2 Knowledge Check


This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.
airport taxi london


dan tempat tidur tingkat yang kami tawarkan cek daftar harga . apakah anda jasa konstruksi gudang jasa konstruksi gedung

Best price

Free text searching will decide the best.


Essays service

It's a great news indeed, I hope it's going to be the best thing


very impressive content.!!
Moonis elahi

happy new year wishes 2017


Good help in scripting Women biker jackets

Muhammad Sandy

Good job

I was very interested in the article. It’s quite inspiring I should admit.

happy new year wishes messages for family

this is good informations..i really like this post.i thank you this post.
happy new year wishes messages for family


Impressive content!

Moonis elahi

very nice feature


Thank you very much for your post! Have a good day guy
Feel free to visit my website, you can play Friv 4 games , all hot games at Friv 3 games , Friv4shool, Play game free at Frivcom Much Fun!


Hello, I am glad to read the whole content of this blog and am very excited and happy to say that the webmaster has done a very good job here to put all the information content and information at one place.
Friv 2 juegos


Excellent Writing Skills!!

Moonis elahi

Latest Update

Royal Group Education
Such a cool stuff Admin Keep it up...

Education India

Royal Group Education
Such a nice work Admin Keep it up

Info bagi penderita Penyakit

Info bagi penderita Penyakit gagal ginjal yang cuci darah ada baiknya anda lihat laman metode terapi dan bagaimana cara mengetahui gejala gagal ginjal dan pengobatanya yang bisa didapatkan untuk kesehatan tubuh secara menyeluruh anda saat ini sedang mengalami ganguan kesehatan seperti menderita penyakit anemia dan lainya kini berkat makanan alami obat untuk untuk anemia aplastik dan untuk keterangan lengkap manfaat dan klik disini

PAN Card Status

Thanks for sharing this great informative site.PAN Card Status

Make use of a free of charge

Make use of a free of charge windows registry cleaner to repair any problems in the computer registry that are resulting from the msvcp100.dll computer file. Most likely the issue has happened because of invalid msvcr100.dll records in the computer registry after you have erased a given program.


يعتبر رش المبيد من الامور الصعبه التى لابد ان تتم
مكافحة حشرات بالمدينة المنورة
بحرص شديد جدا شركة مكافحة الحشرات بالمدينة المنورة تقوم باعمال الرش من خلال اقوى انواع المبيدات الحشرية المتواجده فى الاسواق والاعتماد على افضل انواع الرش من الرش الالمانى
مكافحة الحشرات بالمدينة المنورة
وطرق الرش بالحقن والقيام برش الاسطح بالمبيدات وتستمرما يقرب من 6 ساعات متواصل والقيام باعمال المسح على الفور وتاكد انك لم تستطيع ان تتعرض الى الحشرات
رش حشرات بالمدينة المنورة
مره اخرى كما ان شركة مكافحة حشرات تعتمد على اجود انواع المبيدات التى تساعد فى القيام باعمال الرش دون ان تترك اى اثر للحشرات ويمتد مفعول المبيد الى ما يقرب من 10- 15 سنه تقريبا.

Movie Box App

You have written such an appreciable post movie box app thank you so much for sharing this information with all of us.

Kindly keep posting such content.thank you!!

Superb! I really like it and would love to keep visiting this website.

Moonis elahi

kista ovarium

Hеllo eveгyone, it’s my firѕt pay a quick visit at tһіѕ site obat kista ovarium Khasiat Jely Gamat Luxor Untuk Perawatan dan Pengobatan Penyakit harga jeli gamat luxor

age of war

Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.

Discover our website bounty of free online games now!
Our website has the biggest collection of free online games. Totally new games are added every day!

age of war 2| gold Miner 2| unfair Mario 2 | cubefield 2 |tanki Online 2


This blog is so nice to me. I will continue to come here again and again. Visit my link as well. Good luck
obat aborsi
cara menggugurkan kandungan
obat telat datang bulan
obat penggugur kandungan

All of Us

Need to have the dating tips for all.
Red Smoothie Detox Factor


Nice Article thanks for sharing this best blog with me visit this also

Lionel messi Net Worth


Nice Article thanks for sharing this best blog with me visit this also
Birthday Wishes

Create new hotmail account

With a Hotmail account, you can send and receive emails quickly and easily as well as login and use all Microsoft services.
hotmail login | create new hotmail account
Creating a Gmail account is quick and easy. You can follow the tutorial to sign up Gmail here.
gmail login | gmail sign in | install google drive

Post new comment

More information about formatting options