Author Topic: PHP Regular expression  (Read 407 times)

0 Members and 1 Guest are viewing this topic.

Offline Code.Illusionist

  • Royal Highness
  • ****
  • Posts: 687
  • Cookies: 39
  • Compile or die trying
    • View Profile
PHP Regular expression
« on: February 10, 2014, 02:18:23 pm »
URL: http://www.regexr.com/
Description: This website is very useful tool to learn Regular expressions in PHP. You can use two functions: Match and Replace. In first textbox on top you write regular expresion like:

Code: [Select]
[\w\d\.\s]*That's just example. And check global to find all matches because in PHP there is no match parameter for all expect function preg_match_all. I think it's very nice to try it out and learn =)
« Last Edit: February 10, 2014, 02:18:49 pm by Code.Illusionist »
Vae Victis - suffering to the conquered

Offline Phage

  • VIP
  • Overlord
  • *
  • Posts: 1280
  • Cookies: 120
    • View Profile
Re: PHP Regular expression
« Reply #1 on: February 10, 2014, 08:50:01 pm »
I find http://regex101.com to be much better.
"Ruby devs do, in fact, get all the girls. No girl wants a python, but EVERY girl wants rubies" - connection

"It always takes longer than you expect, even when you take into account Hofstadter’s Law."

Offline Code.Illusionist

  • Royal Highness
  • ****
  • Posts: 687
  • Cookies: 39
  • Compile or die trying
    • View Profile
Re: PHP Regular expression
« Reply #2 on: February 10, 2014, 10:08:07 pm »
Thanks =)
Vae Victis - suffering to the conquered