Use <@LOCATE STR="" FINDSTR=""> to find the start and end position, then do
the math to figure out the length, and use <@substring> to pull it out. That
assumes you will only have 1 [ and one ] in the string. If you have
multiples ... you might try something with tokenize.

Shane Pearlman
PM:Networks 

-----Original Message-----
From: MC Tay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 6:51 PM
To: witango-talk@witango.com
Subject: Re: Witango-Talk: Stripping string

Thanks Robert for your quick response.

The string that we want to get is the string within the tags (which are 
started with [[ and and ended with ]] ) that we embedded within the long 
text. We don't care the rest of it.

Can you show me the syntax for this by using the regex please? Thanks!

MC

At 06:41 PM 10/18/2005, you wrote:
>regex is very fast for this kind of stuff, the question is how are
>you searching?
>
>What is the criteria? do you know the OTHER part of the string, and
>want the rest?
>
>--
>
>Robert Garcia
>President - BigHead Technology
>VP Application Development - eventpix.com
>13653 West Park Dr
>Magalia, Ca 95954
>ph: 530.645.4040 x222 fax: 530.645.4040
>[EMAIL PROTECTED] - [EMAIL PROTECTED]
>http://bighead.net/ - http://eventpix.com/
>
>On Oct 18, 2005, at 6:34 PM, MC Tay wrote:
>
>>Hi:
>>
>>I am trying to use the string function to strip a certain section
>>of any string and couldn't find a best way to do it.
>>
>>For example:
>>
>>This is a very long string and I have placed [[This is the string I
>>want to get]] within the long string ..... bluh bluh bluh .....
>>
>>How do I strip the long string and just get this [[This is the
>>string I want to get]]?
>>
>>Can anyone help please? Thanks in advance.
>>
>>MC
>>
>>______________________________________________________________________ __
>>TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>>
>
>________________________________________________________________________
>TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to