Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Read and extract the values between 2 brackets

2 views
Skip to first unread message

Ellobo

unread,
Feb 23, 2007, 5:17:31 AM2/23/07
to
Hi people,

What I need is a function to extract the values between 2 brackets
and put a flag(or something like that) where the words 'AND' or 'OR'
are located and if they are located between 2 brackets.

For example a text can look like this:

(
(
Value1 = 1
OR
VALUE1 = 2
OR
(
VALUE1 = 3
OR
VALUE1 = 4
)
AND
Value2 = 100


Can someone help me with this?

Any help would be very appreciated.

Thanks in advance.

Paul

Ellobo

unread,
Feb 23, 2007, 5:56:02 AM2/23/07
to
Hello again,

FYI.
The function should return a result like this:

Original
========
AND


(
(
Value1 = 1
OR
VALUE1 = 2

)


OR
(
VALUE1 = 3
OR
VALUE1 = 4
)
)
AND
Value2 = 100

Result
======
OpenFlag1
DetailFlag Value1 = 1
DetailFlag Value = 2
BetweenFlag
DetailFlag Value1 = 3
DetailFlag Value = 4
OpenFlag2
DetailFlag Value2 = 100

Thanks Paul

0 new messages