Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Regular Expressions : help with ...

Regular Expressions : help with ...
Thread Tools
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
May 16, 2001, 11:13 PM
 
Regarding Regular Expressions:

1) How do you search for a NULL and|or void value ???

2) can you recommend a book on Regular Expressions?
(perhaps GREP or REGEX)

Tnx.
"Last time the French asked for more evidence, it rolled through France with a German flag." - David Letterman
     
Fresh-Faced Recruit
Join Date: May 2001
Status: Offline
Reply With Quote
May 17, 2001, 06:22 AM
 
First, books explaining regular expressions:
Kernighan, Pike "UNIX Programming Environment"; unfortunately, out of print for some decades
Larry Wall, et. al. "Programming Perl"; great book, accessible to newcomers to programming, as well as experienced veterans; it covers basic, extended, and Perl exteneded regexps to painful detail (among a plethora of toher things)

As to your question, a regex can find only something that is there So, the real question is how is the invalid or NULL value represented in the string that you want to search? Beware of empty strings: these can be found between every two characters (i.e. you will find lots of them)

     
NeoMac  (op)
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
May 17, 2001, 12:10 PM
 
Originally posted by ladavacm:

As to your question, a regex can find only something that is there So, the real question is how is the invalid or NULL value represented in the string that you want to search?
1/2 hour after I posted the thread, I realized that it was a stupid question and that regex had nothing to do with what I wanted to do.

It was late and I was too tired to realize the stupidity. I checked the system logs this morning and the last output was:

Code:
12:13AM - Error Wil Robinson! - your bio-drive is experiencing a bought of stupidity.


[This message has been edited by NeoMac (edited 05-17-2001).]
"Last time the French asked for more evidence, it rolled through France with a German flag." - David Letterman
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:36 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2