When similar things have been discussed in the past I read the message,
thought I understood, and moved on. Now I need to do it I can't find
those messages in the archives.

I have text files from an electronic CAD package (http://mccad.com/)
that contain multiline records. I wish to sort the records. The first
line starts with a non-tab, remaining lines start with a tab, next
non-tab is the next record.

The following pattern in Find... correctly finds records in the
following sample data:
^([^\t]*\r)(^\t.*\r)*

Here is some sample data:

Jumper3,J,\F.100 JUMP 3
        94300003,0
MAX489E,U,VDIP,14,300,62
        2010000489,0
C-Grid SL 0.100x6,J,\F.CGRID100X6
        9070536,0
MAX333,U,VDIP,20,300,62
        2110000333,4    1,1     2,2     3,3     4,4
        2110000333,4    1,10    2,9     3,8     4,7
        2110000333,4    1,11    2,12    3,13    4,14
        2110000333,4    1,20    2,19    3,18    4,17
        2120000333,0
LM393,U,VDIP,8,300,62
        1150223393,0
        1150223393,3    1,7     2,6     3,5
        1000099999,2    1,8     2,4


Text -> Sort Lines... has "Sorted lines to new document", "Sorted lines
to replace selection", "Sort using pattern", search pattern is as shown
above, and I've tried all 3 "Sort Using:" options.

The result is a new document containing exactly the same thing as the
original. A MAX333 should come before a MAX489, and a C-Grid should come
before all of those.

Clearly I'm not holding my tongue correctly, but am at loss as to which
tooth has the missing button.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]
========================================================================
Whom computers would destroy, they must first drive mad.

-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to