In perl, the token delimeter doesn't matter - the regex I sent earlier would
be basically the same, just swap the {}'s with your delimeter...James -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Hebert Sent: Tuesday, August 03, 2004 9:50 AM To: [email protected] Subject: Re: [brlug-general] noob regex question --- John Hebert <[EMAIL PROTECTED]> wrote: > Howdy, > > I have a bunch of text with multiple tokens in it demarcated by { and > }. > > Sample text: > this is some {text1}. this is more {text2}. and yet some more {text3}. > blahdeblah. Just realized that instead of using { and }, I should some other character to demarcate my tokens, let's say @, so the sample text should be: this is some @[EMAIL PROTECTED] this is more @[EMAIL PROTECTED] and yet some more @[EMAIL PROTECTED] blahdeblah. > What would a regular expression to get these tokens out of the text > look like, in a Perl script, say? Or rather than Perl, any common Unix tool that uses RE, like sed, awk, etc. Thanks. > Thanks, > John > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail > > _______________________________________________ > General mailing list > [email protected] > http://brlug.net/mailman/listinfo/general_brlug.net > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail _______________________________________________ General mailing list [email protected] http://brlug.net/mailman/listinfo/general_brlug.net
