Jump to content

Search the Community

Showing results for tags 'preg_match'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 3 results

  1. I have a thing I dont get. I found this regex part to check for correct subdomains. function check_subdomain($data){ if (!empty($data)){ $data = preg_match("/^(?:[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]|[A-Za-z0-9])$/", $data); return($data); } else { } } echo check_subdomain($data); but the strange thing is that echo check_subdomain($data) outputs the input and adds a 0 when wrong and a 1 when correct. why is this done and how to avoid it?
  2. hi, i have a preg_match that checks "descriptions". the preg_match fails when i input an apostrophe ' in the text box. my code is as follows: $clean_description_step01 = htmlentities($thisValue, ENT_QUOTES);$clean_description_step02 = stripslashes($clean_description_step01); if(preg_match("/^[-',.a-z0-9dws]{1,200}$/i",$clean_description_step02)) { do something here...} can any one see why its not working?
  3. HungryMind

    Preg_Match Issue

    I want to get data which is under these codes <!--load_css--> and <!--/load_css--> using preg_match() <!--load_css--><link href="../styles/style.css" rel="stylesheet" type="text/css" /><link href="../styles/style_ii.css" type="text/css" rel="alternate stylesheet" title="b-bg"/><link href="../styles/style_iii.css" type="text/css" rel="alternate stylesheet" title="c-bg"/><link href="../styles/style_iv.css" type="text/css" rel="alternate stylesheet" title="d-bg"/><link href="../styles/style_v.css" type="text/css" rel="alternate stylesheet" title="e-bg"/><link href="../styles/style_vi.css" type="text/css" rel="alternate stylesheet" title="f-bg"/><link href="../styles/style_vii.css" type="text/css" rel="alternate stylesheet" title="g-bg"/><link href="../styles/style_viii.css" type="text/css" rel="alternate stylesheet" title="h-bg"/><!--/load_css--> Need help please.Specially waiting for: the scientist, boen robot, justsomeguy replies.
×
×
  • Create New...