Re: replaceText --> Regex question

2010-07-24 Thread Glen Bojsza
t; way? > > > > I have to change the beginning of a string. > > > > The original string is ALWAYS proceeded by _parm > [...] > > I have thousands of beginnings that need changing so I am trying > > > > put replaceText (field "Gates", * & &qu

Re: replaceText --> Regex question

2010-07-24 Thread Ludovic Thébault
nings that need changing so I am trying > > put replaceText (field "Gates", * & "_parm", "Study4") into field > "StudyGroup" Try put replaceText (field "Gates", ".+_parm", "Study4") into field "StudyGro

replaceText --> Regex question

2010-07-24 Thread Glen Bojsza
being Study401.zip I have thousands of beginnings that need changing so I am trying put replaceText (field "Gates", * & "_parm", "Study4") into field "StudyGroup" The * & is what I need help with... what is a method for doing a wildcard

Re: replaceText

2009-06-07 Thread -= JB =-
I think you have a point and will store it as a binary in a custom property. thanks again -=>JB<=- On Jun 7, 2009, at 2:11 PM, Richmond Mathewson wrote: There are 2 schools of thought about this sort of problem: 1. The elegant code school. 2. The garden spade school. I belong to the sec

Re: replaceText

2009-06-07 Thread -= JB =-
school of though is I could not get replaceText to do the job and your solution works so I am happy. -=>JB<=- On Jun 7, 2009, at 2:11 PM, Richmond Mathewson wrote: There are 2 schools of thought about this sort of problem: 1. The elegant code school. 2. The garden spade school. I bel

Re: replaceText

2009-06-07 Thread Richmond Mathewson
There are 2 schools of thought about this sort of problem: 1. The elegant code school. 2. The garden spade school. I belong to the second; as I am not unduly worried about the fact that a couple of extra lines of code may add a few micro-seconds to the time taken for it to execute. Hence the "D

Re: replaceText

2009-06-07 Thread -= JB =-
Got it working, thanks I was concerned if it would find the text if it had other characters on each side instead of spaces and like you say it works. -=>JB=- On Jun 7, 2009, at 1:46 PM, Richmond Mathewson wrote: I don't think Runtime Revolution as such parses words the way human beings do, it

Re: replaceText

2009-06-07 Thread Richmond Mathewson
I don't think Runtime Revolution as such parses words the way human beings do, it will replace any string (or part thereof) with any other string. For the sake of argument try this: on mouseUp put "id=d2b516" into oldWord put "id=xyz59wk" into newWord if fld id 1004 contains "id=d2b516" then

Re: replaceText - correction

2009-06-07 Thread -= JB =-
That did it! I was going to tell you I got an error because for some reason I didn't change fSATUFF to fld id 1004 but you caught it before I had a chance. thanks to everyone for the help. -=>JB<=- On Jun 7, 2009, at 1:22 PM, Richmond Mathewson wrote: Sorry, should have written: on mouseUp

Re: replaceText

2009-06-07 Thread -= JB =-
Will this work if it needs to be characters and not words? I will give it a try and get back with you. -=>JB<=- On Jun 7, 2009, at 1:19 PM, Richmond Mathewson wrote: Dunno what all the fuss is about; this works: on mouseUp put "id=d2b516" into oldWord put "id=anything" into newWord if fl

Re: replaceText

2009-06-07 Thread Richmond Mathewson
If you really insist on using replaceText you can do this: on mouseUp put "id=d2b516" into oldWord put "id=anything" into newWord if fld id 1004 contains "id=d2b516" then put replaceText(fld id 1004, oldWord, newWord) into fld id 1004 end if end mouseUp

Re: replaceText - correction

2009-06-07 Thread Richmond Mathewson
Sorry, should have written: on mouseUp put "id=d2b516" into oldWord put "id=anything" into newWord if fld id 1004 contains "id=d2b516" then replace oldWord with newWord in fld id 1004 end if end mouseUp rather than on mouseUp put "id=d2b516" into oldWord put "id=anything" into newWord if

Re: replaceText

2009-06-07 Thread Richmond Mathewson
Dunno what all the fuss is about; this works: on mouseUp put "id=d2b516" into oldWord put "id=anything" into newWord if fld id 1004 contains "id=d2b516" then replace oldWord with newWord in fld "fSTUFF" end if end mouseUp -= JB =- wrote: Below is a piece of text from the field, /link

Re: replaceText

2009-06-07 Thread Mark Schonewille
Longer please? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com Snapper Screen Recorder 2.0.1 http://snapper.economy-x-talk.com If you sent me an e-mail before 15 May and haven't got a reply yet, please send me a reminder. On

Re: replaceText

2009-06-07 Thread -= JB =-
Below is a piece of text from the field, /link.php?&gr=1&id=d2b516&url=/ftt/ I will be replacing id=d2b516 with id=anything -=>JB<=- On Jun 7, 2009, at 1:00 PM, Mark Schonewille wrote: JB, can you post a piece of the text you are modifying? -- Best regards, Mark Schonewille Economy-x-Tal

Re: replaceText

2009-06-07 Thread Mark Schonewille
JB, can you post a piece of the text you are modifying? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com Snapper Screen Recorder 2.0.1 http://snapper.economy-x-talk.com If you sent me an e-mail before 15 May and haven't got a reply

Re: replaceText

2009-06-07 Thread -= JB =-
end repeat --answer replaceCode put line n of newText into newCode repeat 4 times delete last char of newCode end repeat --answer newCode --exit to top put replacetext(findCode, replaceCode, newCode) into fld id 1004 end

Re: replaceText

2009-06-07 Thread Jim Ault
Please note the difference in programming languages between a command and a function syntax. Command replace findWords with newWords in fld "fSTUFF" --the original has been changed Function put replaceText(field "Stats",return,comma) into newTextBlock --the original rem

Re: replaceText

2009-06-07 Thread -= JB =-
ceCode put line n of newText into newCode repeat 4 times delete last char of newCode end repeat --answer newCode --exit to top put replacetext(findCode, replaceCode, newCode) into fld id 1004 end repeat repeat with n = 1 to nu

Re: replaceText

2009-06-07 Thread Richmond Mathewson
Funnily enough I've nev r used this before . . . Tried your recipe and duplicated your error & more importantly: I know why . . . If you look in the Documentation under replaceText it shows this: replaceText(field "Stats",return,comma) while your replacetext(fld

Re: replaceText

2009-06-07 Thread Mark Schonewille
Hmmm... wait a sec... Which version of Revolution are you using and are you executing this function from the message box? If so, there is a problem with the message box, which now requires you to put "put" or "get" in front of every function you execute from the message box. -- Best regar

Re: replaceText

2009-06-07 Thread Mark Schonewille
OK, JB, Could you post your actual script? Do you realise that this is a function, not a command? You need to use "put". -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com Snapper Screen Recorder 2.0.1 http://snapper.economy-x-talk.c

Re: replaceText

2009-06-07 Thread -= JB =-
per.economy-x-talk.com If you sent me an e-mail before 15 May and haven't got a reply yet, please send me a reminder. On 7 jun 2009, at 21:20, -= JB =- wrote: The Rev dictionary shows the following two forms for replaceText, replacetext("malformed","mal","w

Re: replaceText

2009-06-07 Thread Mark Schonewille
inder. On 7 jun 2009, at 21:20, -= JB =- wrote: The Rev dictionary shows the following two forms for replaceText, replacetext("malformed","mal","well") -- returns "wellformed" replacetext(field "Stats",return,comma) -- makes comma-delimited Let&#

replaceText

2009-06-07 Thread -= JB =-
The Rev dictionary shows the following two forms for replaceText, replacetext("malformed","mal","well") -- returns "wellformed" replacetext(field "Stats",return,comma) -- makes comma-delimited Let's say I want to replace the text "Hel

Re: help with replacetext

2007-07-01 Thread Klaus Major
Hi Jim, Mark and Peter, Am 30.06.2007 um 20:36 schrieb Jim Ault: I did my first answer without the "right before the suffix" part \d means digit [^\d] means non-digit [^\d\n\.] means non-digit, not linefeed and not period Using replaceText makes the task a bit difficult but

Re: help with replacetext

2007-06-30 Thread Jim Ault
I did my first answer without the "right before the suffix" part \d means digit [^\d] means non-digit [^\d\n\.] means non-digit, not linefeed and not period Using replaceText makes the task a bit difficult but here is a solution that works: --need to setup a condition where digits no

Re: help with replacetext

2007-06-30 Thread Mark Wieder
Klaus- Saturday, June 30, 2007, 5:43:22 AM, you wrote: > I already filtered all jpg and png files from the list, then I use > e.g. : > ... > put replacetext(tolower(tFiles5),"[a-zA-Z]","") into tFiles6 Try this... put matchText(tolower(tFiles5),"([0-9]+)\.

Re: help with replacetext

2007-06-30 Thread Mark Wieder
Klaus- Saturday, June 30, 2007, 5:43:22 AM, you wrote: > I already filtered all jpg and png files from the list, then I use > e.g. : > ... > put replacetext(tolower(tFiles5),"[a-zA-Z]","") into tFiles6 Interesting. That's a bit of a weird request (just

Re: help with replacetext

2007-06-30 Thread Jim Ault
cture. > > I already filtered all jpg and png files from the list, then I use > e.g. : > ... > put replacetext(tolower(tFiles5),"[a-zA-Z]","") into tFiles6 > ... > > but don't know how to add ALL non-numeric chars to the syntax. ___

help with replacetext

2007-06-30 Thread Klaus Major
suffix. So from the above example it should return: 01 22 22 225 ... You get the picture. I already filtered all jpg and png files from the list, then I use e.g. : ... put replacetext(tolower(tFiles5),"[a-zA-Z]","") into tFiles6 ... but don't know how to add ALL non-nu

Re: Replacetext conundrum

2006-04-06 Thread Martin Baxter
Rob Beynon wrote: Dear All Why does (in the message box even, but also in scripts) put the replacetext("[EMAIL PROTECTED]","@",".") give "dah.dah" but put the replacetext("dah.dah",".","@") give "@ @ @ @ @ @ @&q

Replacetext conundrum

2006-04-06 Thread Rob Beynon
Dear All Why does (in the message box even, but also in scripts) put the replacetext("[EMAIL PROTECTED]","@",".") give "dah.dah" but put the replacetext("dah.dah",".","@") give "@ @ @ @ @ @ @" t

RE: ReplaceText and Backslash

2005-10-05 Thread Lynch, Jonathan
Does this work: Put "\" & quote into tRep Replace tRep with quote in tString -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Todd Geist Sent: Tuesday, October 04, 2005 3:35 AM To: use-revolution@lists.runrev.com Subject: ReplaceText and Ba

ReplaceText and Backslash

2005-10-05 Thread Todd Geist
Hello, I have a string that comes from Applescript and it has a bunch of /" in it. It looks like this Script id=\"7\" name=\"New Script 2\" includeInMenu=\"True\" I would like to replace the Backslash Quote string with just Quote. But this does not work. put

Re: ReplaceText and Backslash

2005-10-04 Thread Todd Geist
THANKS! that did it On 10/4/05 12:50 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > try to "escape" the backslash first. > > put replacetext( fld 1, backslash&backslash & quote , quote ) into fld 1 -- Todd Geist _

Re: ReplaceText and Backslash

2005-10-04 Thread xbury . cs
try to "escape" the backslash first. put replacetext( fld 1, backslash&backslash & quote , quote ) into fld 1 which is not necessary with replace backslash & quote with quote in fld 1 cheers -=- Xavier [EMAIL PROTECTED] wrote

Re: ReplaceText and Backslash

2005-10-04 Thread Eric Chatonet
uot; name=\"New Script 2\" includeInMenu=\"True\" I would like to replace the Backslash Quote string with just Quote. But this does not work. put replaceText (theString, backslash & quote, quote) Best Regards from Paris, Eric Chatonet.

ReplaceText and Backslash

2005-10-04 Thread Todd Geist
Hello, I have a string that comes from Applescript and it has a bunch of /" in it. It looks like this Script id=\"7\" name=\"New Script 2\" includeInMenu=\"True\" I would like to replace the Backslash Quote string with just Quote. But this does not work. put

[ANN] Ignore my last ANN re: ReplaceText

2005-08-22 Thread Ken Ray
(This will teach me to not send things before their time...) What I posted as a bug with replaceText in 2.6 is actually a bug in 2.5.1 that I was taking advantage of and thought it was "normal", so when it was fixed in 2.6 I thought it was a bug. As many have pointed out to me, the

[ANN] ReplaceText Bug and STS XML Library

2005-08-21 Thread Ken Ray
y who have purchased the Standard version, so this is the fastest way to communicate with you all. I have recently logged a bug in Bugzilla (#3074) related to Rev 2.6 (I'm running Build 108) that has a replacetext problem that causes issues with the XML Library (since that's what it&#x

R: Re: replaceText in Rev cgi

2005-04-21 Thread carambola
Rev cgi is great also on the windows platform... I fixed all the problems and now it works! Ciao Paolo ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution

Re: replaceText in Rev cgi

2005-04-21 Thread Frank D. Engel, Jr.
got " HTTP InternalError 500 from the browser" when I tried to run an Hello World script. Any suggestions? Paolo Mazza Venerdì, 15 Apr 2005, alle 21:44 Europe/Rome, jbv ha scritto: Hi all, I just noticed that the replaceText function doesn't work in Rev 2.5 cgi Linux... Is there a rat

Re: replaceText in Rev cgi

2005-04-21 Thread paolo
cgi-bin folder and tht's it! However it does not work on Windows XP. I got " HTTP InternalError 500 from the browser" when I tried to run an Hello World script. Any suggestions? Paolo Mazza Venerdì, 15 Apr 2005, alle 21:44 Europe/Rome, jbv ha scritto: Hi all, I just noticed that

Re: Weird Problem with replaceText

2005-04-18 Thread Dar Scott
On Apr 18, 2005, at 10:55 AM, David Burgun wrote: This works fine. I just wanted a one liner to get the name of a Stack other that the current stack in the current Folder. Like this? put renamedFile(oldPath,newName) into myString Now all you have to do is define the function in some common plac

Re: Weird Problem with replaceText

2005-04-18 Thread David Burgun
I've got it to work just by assigning the names to variables and then using the variables in the replaceText function., as in: local myTemp1 local myTemp2 local myString put the filename of this stack into myTemp1 put the short name of this stack into myTemp2 put replaceText(myTemp1, my

Re: Weird Problem with replaceText

2005-04-18 Thread Eric Chatonet
Hi Dave, You might choose another method: set the itemDel to slash put the filename of this stack into tPath put "StackFileAnotherFile.rev" into item -1 of tPath Le 18 avr. 05, à 18:39, David Burgun a écrit : Hi Dave, put replaceText(the filename of this stack,the short name of

Re: Weird Problem with replaceText

2005-04-18 Thread David Burgun
Hi Dave, put replaceText(the filename of this stack,the short name of this stack,"xx") into myString Works fine here when the name of the file is the same as the name of the stack (disregarding the extension). But they can be DIFFERENT and then associate these 2 references migh

Re: Weird Problem with replaceText

2005-04-18 Thread Dar Scott
On Apr 18, 2005, at 9:34 AM, David Burgun wrote: Anyone got any ideas on this one: I don't know why those don't work the same, but maybe this applies: The dot (period) has a special meaning in regular expressions. Function replaceText() uses a r

Re: Weird Problem with replaceText

2005-04-18 Thread Eric Chatonet
Hi Dave, put replaceText(the filename of this stack,the short name of this stack,"xx") into myString Works fine here when the name of the file is the same as the name of the stack (disregarding the extension). But they can be DIFFERENT and then associate these 2 references mig

Weird Problem with replaceText

2005-04-18 Thread David Burgun
Hi, Anyone got any ideas on this one: This doesn't work: local myString put replaceText(the filename of this stack,the short name of this stack,"xx") into myString The Trailing ".rev" is removed Whereas this does: local myTemp1 local myTemp2 local myString put t

replaceText in Rev cgi

2005-04-15 Thread jbv
Hi all, I just noticed that the replaceText function doesn't work in Rev 2.5 cgi Linux... Is there a rational explanation to this ? JB PS : I just finished a cgi script that generates on the fly PDF files (from 1 to 30 pages) with complex layouts featuring data from a MySQL DB, and it

Re: replacetext

2002-01-24 Thread Mike McManus
see what happens when you create a great product. You skip over the documentation. Sorry, It's so like Hypercard for me, that the transition has been very easy for the most part. I just jumped in and started where I left off, with tons of new tools! Biggest problem for me has been getting app

Re: replacetext

2002-01-23 Thread Jeanne A. E. DeVoto
At 1:38 PM -0800 1/23/2002, Mike McManus wrote: >Awesome!!1 now just have to remember it for a day or two. > >Where was this little tidbit hidden...? Not a complaint...just a question It's in the Encyclopedia section "About the Documentation". I thought it was also in the Tips, but it wasn't

Re: replacetext

2002-01-23 Thread yves COPPE
>Awesome!!1 now just have to remember it for a day or two. > >Where was this little tidbit hidden...? Not a complaint...just a question > In the tutorial (I think) -- Greetings. Yves COPPE Email : [EMAIL PROTECTED] ___ use-revolution mailing lis

Re: replacetext

2002-01-23 Thread Jeanne A. E. DeVoto
At 10:25 AM -0800 1/23/2002, Mike McManus wrote: >On Sunday, January 20, 2002, at 03:10 AM, David Vaughan wrote: >> So, some people aren't reading it and are then complaining. Do they >> also expect instructions on a milk carton saying "Do not invert after >> opening"? > >Since I originally posted

Re: replacetext

2002-01-23 Thread Mike McManus
Awesome!!1 now just have to remember it for a day or two. Where was this little tidbit hidden...? Not a complaint...just a question On Wednesday, January 23, 2002, at 02:46 PM, yves COPPE wrote: >> - On 1/23/2002, Mike McManus wrote: >> - >>> I thin

Re: replacetext

2002-01-23 Thread yves COPPE
>- On 1/23/2002, Mike McManus wrote: >- >> I think I would like to just be able to copy the >> example from the dictionary to be sure I have the proper syntax for >> those seldom used commands and functions. >> > >THAT would be nice! > >~Roger > On Mac,

Re: replacetext

2002-01-23 Thread Roger . E . Eller
- On 1/23/2002, Mike McManus wrote: - > I think I would like to just be able to copy the > example from the dictionary to be sure I have the proper syntax for > those seldom used commands and functions. > THAT would be nice! ~Roger

Re: replacetext

2002-01-20 Thread David Vaughan
On Sunday, January 20, 2002, at 06:21 , Jeanne A. E. DeVoto wrote: > Does anyone else have an opinion about this? Any other ways to make it > crystal clear that a function can't be used as a complete statement, and > avoid confusing people? > > -- > Jeanne A. E. DeVoto ~ [EMAIL PROTECTED] > http:

Re: replacetext

2002-01-19 Thread Jeanne A. E. DeVoto
At 5:40 PM -0800 1/18/2002, Bob Rasmussen wrote: >To Rev documentation folks: > >Given the subtle distinction between commands and functions, I think >it would be a good idea in the Rev documentation to give examples >only of usage in proper context. That is, please don't show functions >alone on

Re: replacetext

2002-01-18 Thread Jeanne A. E. DeVoto
At 5:11 AM -0800 1/18/2002, Mike McManus wrote: >Why does the line > >replaceText((line n of textToParse),"red","blue") > >always generate the error: Expression: missing ')' before factor. It's because it's not a complete Transcript stat

Re: replacetext

2002-01-18 Thread Bob Rasmussen
It seems like this type of mistake keeps coming up. I've hit it myself more than once. Your problem is that replaceText is a function, not a command. You have to use it in an expression. For example, get replaceText((line n of textToParse),"red","blue") --

Re: replacetext

2002-01-18 Thread Ludovic Thébault
Mike McManus wrote: >replaceText((line n of textToParse),"red","blue") > >always generate the error: Expression: missing ')' before factor. The >error comes up with or without the internal parans, and if I use a >variable instead of a chunk. I ev

replacetext

2002-01-18 Thread Mike McManus
Why does the line replaceText((line n of textToParse),"red","blue") always generate the error: Expression: missing ')' before factor. The error comes up with or without the internal parans, and if I use a variable instead of a chunk. I even get it when I use a