How to find and replace

2005-06-06 Thread Christian Langers
Hello list... I think this has been asked many times, but i did not find any satisfying answer... I need to do the following : repeat with x=1 to the number of chars of the clicktext+5 put _ after char x of tChar end repeat replace the clicktext with tChar in fld 1 where i want

Re: How to find and replace

2005-06-06 Thread Phil Davis
Assuming I understand the problem... try including word delimiters in both the replaced and the replacing text: get the clickText put underscores(length(it)) into tChars -- func makes __ string put space it space into tBad put space tChars space into tGood replace tBad with tGood

Re: How to find and replace

2005-06-06 Thread Dar Scott
On Jun 6, 2005, at 2:36 PM, Christian Langers wrote: I need to do the following : repeat with x=1 to the number of chars of the clicktext+5 put _ after char x of tChar end repeat replace the clicktext with tChar in fld 1 where i want the exact word to be replaced... e.g. I click

Re: How to find and replace

2005-06-06 Thread Christian Langers
Hi there, thanks for the hints... I'm with Rev 2.6. and I have used this (which works !) put the clickText into tVar put replaceText(fld 1,\btvar\b,underscores(length(tvar))) into fld 1 function underscores pCount repeat (pCount)+5 put _ after tString end repeat return

How to find and replace

2005-06-06 Thread Mark Greenberg
On Monday, June 6, 2005, at 12:56 PM, [EMAIL PROTECTED] wrote: I click da and I just want this to be replaced in the field (not das, Dach,Dame,...) How can I solve this ? ___ use-revolution mailing list use-revolution@lists.runrev.com

How to find and replace

2005-06-06 Thread Mark Greenberg
Christian, My previous example used a flavor of RegEx not supported by Rev. Sorry. Please modify the example to read: Put The day is dappled with da and dads. MatchText (MyText, \bda\b) --returns true because da is by itself. ReplaceText (MyText, \bda\b, Ra) --returns The day is dappled

How to find and replace

2005-06-06 Thread Mark Greenberg
Christian, I didn't totally understand your question, but Rev has several ways to match text. RegEx, which is a tiny language imbedded into Rev, will match just about any pattern you want, including da without matching das or Mandant or even Da if you want. Here's how in Rev-RegEx: Put