Welcome To Snipplr


Everyone's Recent Regular Expression Snippets Tagged php



« Prev 1 Next »
  1. FAV Regex - Match IPv6 address

    Regular Expression ip php regex saved by 6 people
    posted 9 years ago by dmertl
  2. FAV Regex - Match IPv4 address

    Regular Expression ip php regex saved by 6 people
    posted 9 years ago by dmertl
  3. FAV RegEx to find replace in TextMate

    search for anything in-between two <TAG>'s and then replace the found string into the PHP if/else staement. $1 is wher TextMate stores the found string. (see http://screenflicker.com/mike/code/textmate-regex-replace/)
    Regular Expression php regex replace search textmate saved by 15 people
    posted 9 years ago by rwczippy
  4. FAV YouTube URL matcher, video ID catcher

    PCRE that matches any kind of YouTube URL and catches its video ID. It supports three kinds of URL: the classic (?v=), the AJAXed one (#!v=) and the short version (youtu.be). It also supports international URLs. Tested with Javascript and PHP.
    Regular Expression javascript php regexp url video saved by 5 people
    posted 9 years ago by nkm
  5. FAV Clean up braces in many languages

    Use this to quickly clean-up a file which has opening braces on a new line, a particular annoyance of mine.
    Regular Expression c line php regex saved by 4 people
    posted 10 years ago by Zenithus
« Prev 1 Next »