Is There a Null Character Representation

Forum for TextAloud version 3

Moderator: Jim Bretti

Is There a Null Character Representation

Postby PHenry1026 » Wed Nov 09, 2011 4:40 pm

Greetings,

Is there a null character representation, that I could use in a character set to represent nothing. For example.

[null,:]

So the regex would work if it found a comma, a colon or nothing.
Last edited by PHenry1026 on Sun May 12, 2013 6:32 am, edited 2 times in total.
PHenry1026
 
Posts: 241
Joined: Thu Jan 11, 2007 12:10 pm

Re: Is There a Null Character Representation

Postby Jim Bretti » Thu Nov 10, 2011 12:10 pm

I don't know about a null character (other than \x00), but would something like this work for what you need?

[,:]?
Jim Bretti
NextUp.com
Listen and Learn Anywhere
http://www.NextUp.com
Jim Bretti
 
Posts: 1226
Joined: Wed Oct 29, 2003 11:07 am

Re: Is There a Null Character Representation

Postby PHenry1026 » Thu Nov 10, 2011 2:13 pm

Hi Jim,

Thanks for the suggestion. [,:]? would'nt work because the most common usage I would have for it would be in a lookbehind assertion which requires fixed length. I will play around with \x00 and see if it or any of its forms like \x{00}, work for me.
Last edited by PHenry1026 on Sun May 12, 2013 6:32 am, edited 2 times in total.
PHenry1026
 
Posts: 241
Joined: Thu Jan 11, 2007 12:10 pm

Re: Is There a Null Character Representation

Postby Jim Bretti » Thu Nov 10, 2011 3:45 pm

I doubt \x00 will do what you want. That will match an actual null character in the text. I can't think of any way to check for something like this that has a fixed length.
Jim Bretti
NextUp.com
Listen and Learn Anywhere
http://www.NextUp.com
Jim Bretti
 
Posts: 1226
Joined: Wed Oct 29, 2003 11:07 am


Return to TextAloud 3 Forum

Who is online

Users browsing this forum: No registered users and 2 guests

cron