FIND (grep):
^ means: beginning of paragraph
\s* means: any number (or none) of whitespace characters
(.+) means: The 1st string to capture is any number of any character (up
until what's next)
*\r means optionally any number of spaces (or none), followed by a return
\s* means: any number (or none) of whitespace characters)
(\d+[0-9ms ]+) means The 2nd string to capture is 1 or more digits
followed any number of characters in the set of 0-9, "m", "s", or a space
*$ means any number (or none) of spaces, up to the end of the line
REPLACE WITH:
\1 means the first captured string
\t means a tab character
\2 means the 2nd captured string
Yes. It's such a major part of BBEdit's power; you should learn it
before AppleScript (or at least learn it, AppleScript or no).
Rick Gordon
---------------------
On 12/8/14 12:25 AM, Vlad Ghitulescu wrote:
Hi, Rick!
It works like magic! Thanks!
It’s the 4th time I think that RegEx did it… I should probably learn this
before AppleScript :-)
Thanks again!
Regards,
Vlad
Am 08.12.2014 um 09:18 schrieb Rick Gordon<[email protected]>:
Try this:
FIND (grep):
^\s*(.+) *\r\s*(\d+[0-9ms ]+) *$
REPLACE WITH:
\1\t\2
Rick Gordon
---------------------
On 12/8/14 12:03 AM, Vlad Ghitulescu wrote:
Hello!
Copying and pasting the TOC of the "Up and Running with
AppleScript<http://www.lynda.com/AppleScript-tutorials/Up-Running-AppleScript/158309-2.html>“
- tutorial bei Lynda.com<http://Lynda.com> leads to this:
___________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________
WWW: http://www.shelterpub.com
--
This is the BBEdit Talk public discussion group. 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>
--- You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
___________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________
WWW: http://www.shelterpub.com
--
This is the BBEdit Talk public discussion group. 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>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].