RE: forward look ahead assertion
"Lilantha Darshana" <[email protected]> Thu, 13 Nov 2003 22:43:10 +0600
| Newsgroups | gmane.comp.jakarta.regexp.user |
|---|---|
| Message-ID | <28B8E04BCFBEB74B9B19F765DE6598E94C8689@ENETSLMAILI.enetsl.Virtusa.com> |
Thanks I wanted some Perl compatible regex in my case so I got resolved my problem with Jakartha ORO. thanks Lilantha. -----Original Message----- From: Mathew, Jeevan (GEAE, Foreign National) [mailto:[email protected]] Sent: Thursday, November 13, 2003 10:21 PM To: 'Regexp Users List' Subject: RE: forward look ahead assertion 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]