From: <[EMAIL PROTECTED]> > it's pretty simple: i need a regex that matches any character in a > string except "\*" (* stands for any char that follows the "\"). > > example: "this is \ba test" > should match: this a is test > > isn't there a way to do this?
Turn that around. What you need to do is remove \* from your string... $new_str = preg_replace('/\\./','',$old_str); Regular expressions are for "pattern matching"... not matching everything BUT a pattern. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php