How do I have my php match the following:
"<key1></key1>" but not "<key1></key2>"
Basically I have the following:
"<key1>Something inside here</key1><key2>Something inside here</key2>", and so my preg looks like this:
Code:
if ( !preg_match("/(<key\d+>.*?<\/key\d+>|)+/,$variable) )
{
  $error = true;
}
But it would be cool to check to see if its incremented like 1...2...3 and to see if they are the same.