xbsjason GREP replace pattern and File Creation from List Question
Aug 07, 2009; 09:11
xbsjason
GREP replace pattern and File Creation from List Question
Hello all,
My question is two-fold. I finally figured out a grep search and replace pattern that suits my needs. Its a really simple one, but a huge step forward for me.
SEARCH GREP ^([^\t]+)\t([^\t]+)$
REPLACE WITH \2.\rNote: \1\r
So my question is this... Is it possible to create a replace pattern that will change the case for \2 to Capitalized case, but only if the included words are 4 or more letters? As an example I have this:
Model1495 \t Base cabinet, hardware, and related accessories
Which, when run through my grep search and replace becomes this:
Base cabinet, hardware, and related accessories. Note: Model1495
But I'd like it to become this (note the capitalized case for words in pattern 2 longer than 4 characters):
Base Cabinet, Hardware, and Related Accessories. Note: Model1495
Is this possible?
Next question, if I have a list of item names, can I quickly create a text file for each of them?
Say my list is simple each item on a new line like so...
Item 1 Item 2 Item 3
and I want Item1.txt, Item2.txt, Item3.txt
Thanks for the time.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "support@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~-
Aug 17
xbsjason Re: GREP replace pattern and File Creation from List Question
Aug 17, 2009; 04:24
xbsjason
Re: GREP replace pattern and File Creation from List Question
Aug 17
Ronald J Kimball Re: GREP replace pattern and File Creation from List Question
Aug 17, 2009; 06:40
Ronald J Kimball
Re: GREP replace pattern and File Creation from List Question
Aug 17
Ronald J Kimball Re: GREP replace pattern and File Creation from List Question
Aug 17, 2009; 06:40
Ronald J Kimball
Re: GREP replace pattern and File Creation from List Question
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!