Re[2]: Regex guru advice needed
Hi Peter, Tuesday, September 26, 2000, 4:02:31 PM, you wrote: snipped PS (?s)#.*~ PS should do it. It does indeed. Thanks for the solution. Unfortunately as I earlier wrote Januk (elsewhere in this thread), I also need to be able to extract the text once found and place it into a reply. I can do this with a single line (using %REGEXPTEXT and RE's), but I'm speculating that multiple lines throw a wrench into the works. snipped PS BTW: finding the RegExp help topics is tricky, because there is no PS link in the help index. Use the Find command in help and look for PS "Regular expressions syntax" The section certainly alerted me to the power of RE's, but for someone coming in stone cold it was of limited help. Time to crack the book. PS HTH A great deal, thanks again! -- Best regards, Arnie -- -- View the TBUDL archive at http://tbudl.thebat.dutaint.com To send a message to the list moderation team double click here: mailto:[EMAIL PROTECTED] To Unsubscribe from TBUDL, double click here and send the message: mailto:[EMAIL PROTECTED] -- You are subscribed as : archive@jab.org
Re[2]: Regex guru advice needed
Hi Januk, Monday, September 25, 2000, 7:00:46 PM, you wrote: snipped JA I can't help you with the text extraction part, but hopefully I can JA shed some light on the pattern match. JA I'm guessing you have some delimiters that you know are at the JA beginning and end of the section of text you want to extract, correct? JA If that's the case, then substitute your beginning string for JA "beginning" and your end string for "end" JA Now the regexp should look something like: JA (?i)(beginning(.*\n)*.*end\n) As always your solution was right on the nose. The above regex works perfectly when used in "Message Finder". However it doesn't work when I combine it with the %REGEXPTEXT macro in a reply template. Since I have extracted single lines of text from an original message using regular expressions and the %REGEXPTEXT macro should I conclude that %REGEXPTEXT can only hold a single line of text? Any help would be greatly appreciated. Children will be renamed in your honor. Just ask little Ming-Li (previously Max) and little Januk (previously Zoe). JA Well I hope my namesake isn't too disappointed with this attempt. :) Not at all, it's wife who's worried. She insists that having two children in the family with the same first name is too "George Foreman" and is threatening drastic measures. In order to keep the peace Louis remains Louis (for the time being). However I did name the rumpus room after you. Thanks again, Arnie -- -- View the TBUDL archive at http://tbudl.thebat.dutaint.com To send a message to the list moderation team double click here: mailto:[EMAIL PROTECTED] To Unsubscribe from TBUDL, double click here and send the message: mailto:[EMAIL PROTECTED] -- You are subscribed as : archive@jab.org
Re[2]: Regex guru advice needed
Hi Peter, A I need to be able to extract text that spans multiple lines. A i.e. A#This is line 1 A This is line 2 A This is line 3~ PS There are 'internal options' for RegExp's. In your case PS (?s)#.*~ PS should do it. Elsewhere is this thread is my thanks for your solution and also a comment on how it doesn't work with %REGEXPTEXT to extract the match and place it into a reply. This was wrong on my part, it works perfectly. While trying to see what kind of error messages I could generate with it, I noticed that I transposed my beginning and end markers. Thanks for the excellent advice. -- Best regards, Arnie -- -- View the TBUDL archive at http://tbudl.thebat.dutaint.com To send a message to the list moderation team double click here: mailto:[EMAIL PROTECTED] To Unsubscribe from TBUDL, double click here and send the message: mailto:[EMAIL PROTECTED] -- You are subscribed as : archive@jab.org