I create a short text file, like > > a test > b > c
My search pattern (Grep on) is '^(\**) ?' (without the quotes). When I search, this pattern finds the any string of asterisks at the beginning of the line, followed by an optional space; if no asterisks, it matches the beginning of the line. (Find next, previous, or find all all work.) My replacement pattern is '*\1 ', which will put an asterisk, any found asterisks, then a space, at the beginning of the line. Doing replace, replace all, or replace and find will often (but not always!) replace the entire file with a single asterisk and space, as if multi-line search is on. Other times it correct steps through each line and prepends an asterisk. What no-doubt-obvious thing am I missing? -- -- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
