Current time: 11-24-2024, 02:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[1.0.3] Add DNS Zone Record
Author Message
Mastacheata Offline
Junior Member
*

Posts: 86
Joined: Oct 2008
Reputation: 2
Post: #11
RE: [1.0.3] Add DNS Zone Record
(12-23-2009 10:43 PM)datacompboy Wrote:  preg_match('~([^a-z,A-Z,0-9\.])~u', $domain['name'], $e)
wrong regexp. it will allow "," but reject "-" Smile
preg_match('~([^-a-zA-Z0-9.])~u', $domain['name'], $e)
this are correct one

You forgot the backslash in front of the dot.
The dot doesn't mean dot but matches every single character (wildcard).
12-24-2009 01:12 AM
Find all posts by this user Quote this message in a reply
datacompboy Offline
Junior Member
*

Posts: 50
Joined: Nov 2009
Reputation: 0
Post: #12
RE: [1.0.3] Add DNS Zone Record
i'm NOT forget it. dot means "any symbol" in regular expression.
but inside brackets [] it means only dot, nothing else Smile
12-24-2009 02:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #13
RE: [1.0.3] Add DNS Zone Record
Thank you datacompboy. I was intended to be covered in #2086.
12-24-2009 06:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)