RE: forward look ahead assertion
"Mathew, Jeevan (GEAE, Foreign National)" <[email protected]> Thu, 13 Nov 2003 11:21:21 -0500
| Newsgroups | gmane.comp.jakarta.regexp.user |
|---|---|
| Message-ID | <[email protected]> |
Does this pattern come in a single line ? Then you can use ^abc\.xyz$ , this will match "abc.xyz" but not "pqrabc.xyz123" Or abc\.xyz$ this will match "abc.xyz" "pqrabc.xyz" but not "pqrabc.xyz123" -----Original Message----- From: Lilantha Darshana [mailto:[email protected]] Sent: Thursday, November 06, 2003 1:34 AM To: [email protected] Subject: forward look ahead assertion Hi Could you tell me whether the regexp supports forward look ahead assertion or not? If not how could we managed to test a patter like: abc.xyz which I need to match exactly abc.xyz but not abc.xyza abc.xyzab etc... I.e. xyz should not follow any other characters. In Perl we could achieve this kind of matching using pattern like: (?:abc.xyz)(?!\w) regards Lilantha