473,320 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

learning how to find characters in searches i think some call it pick statements

1
Setting up a file indexing system to find certain positions

Example 00 a1 00 09
I want to search for all files that have 00 in position 1,2

or to find 09 in position 10,11

Positions
1 2 3 4 5 6 7 8 9 10 11
0 0 empty a 1 empty 0 6 empty 0 9

Example of numbering sequance
00 a1 01 04 = 8 characters and 3 empty spaces

Would it be better to use this numbering system

00a10104 Eliminatiing spaces
Jan 9 '12 #1
2 1329
Rabbit
12,516 Expert Mod 8TB
I'm not sure what you're asking. But if you're asking if removing spaces would be a good idea, then my opinion is that overall, it is better. It would compress the space needed by 33%. The math would be marginally simpler. Readability would suffer.
Jan 9 '12 #2
bvdet
2,851 Expert Mod 2GB
I would suggest following Python indexing convention that the first element of a sequence is at index 0.

How would you know the index positions for your search if you do not include spaces? How would you know you are looking for 'a1' at position 3? Without a space, you would be looking for 'a1' at position 2.
Jan 9 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: tony | last post by:
hi. is there a way to find inside my class.method , what is the class name that call this method ? i know i can send parameter as : Me.GetType.FullName()
3
by: Prakash Bande | last post by:
Hi, I have bool operator == (xx* obj, const string st). I have declared it as friend of class xx. I am now able to do this: xx ox; string st; if (&ox == st) { } But, when I have a vector<xx*>...
1
by: mirandacascade | last post by:
I do not understand how to use the find() method in ElementTree. The file 'sample.xml' is: <?xml version="1.0"?> <SampleRoot> <Header> <Product>FindMystery</Product> </Header>...
1
by: Chumley Walrus | last post by:
I have a function that is sending a value via querystring to another page by hitting a submit button: private void btnSubmit_Click(object sender, System.EventArgs e) {...
16
by: ram0812 | last post by:
Helo guys, I am trying to query the MSSQL DB using ADO. I am not able to make the LIKE statement fetch the correct results. Can anyone tell me what I need to do to get this working? Below is the...
26
by: mfasoccer | last post by:
I am sorry if this is an inappropriate place to put this post, if so please delete it. I am wondering about a few things. Do you guys recommend learning C as a second language, as someone who...
1
by: sklett | last post by:
I know, I know... it's rarely the case. But here is a SIMPLE example of it not working: TreeNode temp = configNode.Nodes.Add("TestNode"); TreeNode findResult = configNode.Nodes.Find("TestNode",...
3
by: rrs.matrix | last post by:
hi is there any system call in unix that will search for a file in the filesystem. someting like the find utility. if not then how should i search for a file in the file system. heard of...
14
by: ddg_linux | last post by:
I am a beginner learning php too. I think for me is the fact that I don't know all of the functions, or how all of the php code actually works. <?php echo 'hello world'; ? - this piece of code...
5
by: ziycon | last post by:
I have a string and want to find any character that is lower case, any ideas how to do this, is there a function that will decipher between upper and lower case?
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.