Subject: | |
From: | |
Reply To: | |
Date: | Thu, 9 Jun 2016 16:09:47 +0000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On Thursday, June 09, 2016 10:33 AM, Mary Westbrook wrote:
> I have a mixed file of 85 records and wanted to break the group into fiction
> vs. nonfiction
>
> 008/33 contains that information. I set the extraction for 008 display with my
> search using regular expressions; I used .{32}0 to pull nonfiction (25 records),
> and .{32}1 to pull fiction (46 records), which left me 14 records.
>
> I tried grouping them by either .{32}[^01] or .{32}[a-z] (everything coded
> except for 0 and 1), but both searches came up with no hits. I also tried
> .{32}[\s] for a white space at that spot, and still no luck. Where do I need to
> change my search query?
008/33 is the 34th byte, so for your regular expression, you would want (if using your original expressions:
.{33}[^01]
However, to be safer, you'd want:
^.{33}[^01]
This says "start at the beginning of the string/field (^) and then find any 33 characters (.{33}) followed by something other than 0 or 1 ([^01])", rather than finding the first "any 33 characters followed by anything that's not 0 or 1". Without the ^ locking the start in place with:
130130s2014\\\\mnuab\\j\b\\\\001\0\eng\\
The following would match:
130130s2014\\\\mnuab\\j\b\\\\001\0\
130130s2014\\\\mnuab\\j\b\\\\001\0\e
130130s2014\\\\mnuab\\j\b\\\\001\0\en
130130s2014\\\\mnuab\\j\b\\\\001\0\eng
130130s2014\\\\mnuab\\j\b\\\\001\0\eng\
130130s2014\\\\mnuab\\j\b\\\\001\0\eng\\
I hope this helps,
Bryan Baldus
Senior Cataloger
Quality Books Inc.
The Best of America's Independent Presses
1-800-323-4241x402
[log in to unmask]
________________________________________________________________________
This message comes to you via MARCEDIT-L, a Listserv(R) list for technical and instructional support in MarcEdit. If you wish to communicate directly with the list owners, write to [log in to unmask] To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]
|
|
|