Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

 

I get a formula string from user like following:

IF(((L[0]Z[60-62]==7) AND (L[1]Z[60-62]==7))OR(L[-0]Z[60-62]!=70))THEN(L[-0]Z[60-62])ELSE(L[-1]Z[60-62])

 

This string comes from a XML config file which is tolding my converter on which positions it have to read in a ASCII file.

 

So, L[0]Z[60-62] means, read in line 0 (L[0]) the chars 60 till 62 (Z[60-62]).

Getting the values is no prob using Regex.

But now I have to regard the innermost bracket:

((L[0]Z[60-62]==7) AND (L[1]Z[60-62]==7))

 

But how to go into the innermost bracket? I mean, from where do I know that this is the innermost bracket?

 

Any easy ways? Any algorythmus that will do this?

 

Converting the pseudo code to real C# code is no prob...

 

Thanks for any good ideas!

 

-Stefan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...