By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,724 Members | 1,391 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,724 IT Pros & Developers. It's quick & easy.

Any GOOD description of the preg_match mask on the net ????

P: n/a
I'm just falling on the same examples constantly (I don't know perl by
the way).
I have this horror to understand:
/<(?:!--\s*)?(\/?[Tt][Mm][Pp][Ll]_\w+)((?:\s+(?:(?:"[^"]*")|(?:\'[\']*\')|(?:[^=\s>]+))(?:=(?:"[^"]*"|\'[^\']*\'|(?:[^\s>]*)))?)(?:\s+[^=\s]+(?:=(?:"[^"]+"|\'[^\']\'|(?:[^\s>]*)))?)*)?(?:\s*--)?>(?m)/
REGEX2:/<(?:!--\s*)?(\/?[Tt][Mm][Pp][Ll]_\w+)((?:\s+(?:(?:"[^"]*")|(?:\'[\']*\')|(?:[^=\s>]+))(?:=(?:"[^"]*"|\'[^\']*\'|(?:[^\s>]*)))?)(?:\s+[^=\s]+(?:=(?:"[^"]+"|\'[^\']\'|(?:[^\s>]*)))?)*)?(?:\s*--)?>(?m)/

Somewhat long, but the tutorials are found don't give a full
description. Is there a complete description of the pregmatch mask
somewhere?
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
jf************@yahoo.com (J.Beaulieu) wrote in message news:<eb**************************@posting.google. com>...
I'm just falling on the same examples constantly (I don't know perl by
the way).
I have this horror to understand:
/<(?:!--\s*)?(\/?[Tt][Mm][Pp][Ll]_\w+)((?:\s+(?:(?:"[^"]*")|(?:\'[\']*\')|(?:[^=\s>]+))(?:=(?:"[^"]*"|\'[^\']*\'|(?:[^\s>]*)))?)(?:\s+[^=\s]+(?:=(?:"[^"]+"|\'[^\']\'|(?:[^\s>]*)))?)*)?(?:\s*--)?>(?m)/
REGEX2:/<(?:!--\s*)?(\/?[Tt][Mm][Pp][Ll]_\w+)((?:\s+(?:(?:"[^"]*")|(?:\'[\']*\')|(?:[^=\s>]+))(?:=(?:"[^"]*"|\'[^\']*\'|(?:[^\s>]*)))?)(?:\s+[^=\s]+(?:=(?:"[^"]+"|\'[^\']\'|(?:[^\s>]*)))?)*)?(?:\s*--)?>(?m)/

Somewhat long, but the tutorials are found don't give a full
description. Is there a complete description of the pregmatch mask
somewhere?


Did you try http://weitz.de/regex-coach/ ??

---
"If there is a God, he must be a sadist!"
Email: rrjanbiah-at-Y!com
Jul 17 '05 #2

P: n/a
ng**********@rediffmail.com (R. Rajesh Jeba Anbiah) wrote in message news:<ab**************************@posting.google. com>...
jf************@yahoo.com (J.Beaulieu) wrote in message news:<eb**************************@posting.google. com>...
I'm just falling on the same examples constantly (I don't know perl by
the way).
I have this horror to understand:
/<(?:!--\s*)?(\/?[Tt][Mm][Pp][Ll]_\w+)((?:\s+(?:(?:"[^"]*")|(?:\'[\']*\')|(?:[^=\s>]+))(?:=(?:"[^"]*"|\'[^\']*\'|(?:[^\s>]*)))?)(?:\s+[^=\s]+(?:=(?:"[^"]+"|\'[^\']\'|(?:[^\s>]*)))?)*)?(?:\s*--)?>(?m)/
REGEX2:/<(?:!--\s*)?(\/?[Tt][Mm][Pp][Ll]_\w+)((?:\s+(?:(?:"[^"]*")|(?:\'[\']*\')|(?:[^=\s>]+))(?:=(?:"[^"]*"|\'[^\']*\'|(?:[^\s>]*)))?)(?:\s+[^=\s]+(?:=(?:"[^"]+"|\'[^\']\'|(?:[^\s>]*)))?)*)?(?:\s*--)?>(?m)/

Somewhat long, but the tutorials are found don't give a full
description. Is there a complete description of the pregmatch mask
somewhere?


Did you try http://weitz.de/regex-coach/ ??

---
"If there is a God, he must be a sadist!"
Email: rrjanbiah-at-Y!com


Thanks a lot!
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.