On Thu, May 20, 2010 at 01:00:57PM -0700, BBEdit user wrote:
> I'm very much an amateur with grep.
> 
> How do I find the optional minus and put it in the subpattern?
> 
> I want to grab the time in the following and then use it for the name.
> Multiple names in the document. I seem to have it except for finding
> the optional minus sign that can occur with ele, lat and lon. I've
> only tried for lon so far and once I have the answer I'll expand it to
> the others. I get errors if I put the minus within the parentheses. I
> tried a -? within the parentheses too. How do I find the optional
> minus and put it in the subpattern?

-? within the parentheses should work fine.  If that's not working for you,
you'll have to be more explicit about what you're trying, what you expect,
and what's actually happenning.

Note that you don't need to escape = or - with a backslash.

Ronald

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.

Reply via email to