The MU forums have moved to WordPress.org

regular expression help (3 posts)

  1. skcsknathan001
    Member
    Posted 15 years ago #

    can anybody tell me how to match blog names starting with 0 [zero]

    Is it this:

    if (preg_match('/^[1]*$/',$domain))

  2. DrLobo
    Member
    Posted 15 years ago #

    try this:

    if (preg_match('/^0.*$/',$domain))

  3. skcsknathan001
    Member
    Posted 15 years ago #

    Thanks a lot DrLobo

    It works.

About this Topic

  • Started 15 years ago by skcsknathan001
  • Latest reply from skcsknathan001