Re: Grep Help
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69251
interpreted = N
texte = Here is a quick function that you can use to do what you want[function name=formatTN][return]
[middlestartAfter=-][tn][/middle][/return][return][/return][/function]Just put this function in your page on in an include file then call asfollows:[formatTN tn=TN-3456] Will work for anything TN-XXXXEasy to tweak the function as needed without using grep.Laters, Olin-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of AlexMcCombieSent: Friday, September 07, 2007 10:34 AMTo: WebDNA TalkSubject: Grep HelpThis just isnt working for me and I admit grep is not my strong point.I need to grep a text string that looks likeTN-3456Into
3456Where the digit can be any number of characters but the TN- will beconsistent.I know I need to strip the word with getchars starting @ 4 but cant figureout the grep part. Probably pretty simple but since there is so much chatter here lately Ithough I would throw this out ;-)ThanksAlexAlex J. McCombie ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Adventure Skies InteractiveBox 124 Martville, NY 13111p. 315 .233 .9403e. Alex@AdventureSkies.comwww.AdventureSkies.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Here is a quick function that you can use to do what you want[function name=formatTN][return][return][middle startAfter=-][tn][/middle]">[middlestartAfter=-][tn][/middle][/return][return][/return][/function]Just put this function in your page on in an include file then call asfollows:[formatTN tn=TN-3456] Will work for anything TN-XXXXEasy to tweak the function as needed without using grep.Laters, Olin-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of AlexMcCombieSent: Friday, September 07, 2007 10:34 AMTo: WebDNA TalkSubject: Grep HelpThis just isnt working for me and I admit grep is not my strong point.I need to grep a text string that looks likeTN-3456Into3456Where the digit can be any number of characters but the TN- will beconsistent.I know I need to strip the word with getchars starting @ 4 but cant figureout the grep part. Probably pretty simple but since there is so much chatter here lately Ithough I would throw this out ;-)ThanksAlexAlex J. McCombie ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Adventure Skies InteractiveBox 124 Martville, NY 13111p. 315 .233 .9403e. Alex@AdventureSkies.comwww.AdventureSkies.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"Olin Lagon"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Showing once on a founditems (1997)
Quantity/price formula (1998)
member pages (2000)
Search in 2 or more catalogs (1997)
Attention all list readers (1997)
YACBQ.....(Yet another checkbox question) (2000)
Comments in db? (1997)
RE: Can a database get stomped by simultaneous access? (1997)
Extended [ConvertChars] (1997)
Running 2 two WebCatalog.acgi's (1996)
TCP Connect (2000)
Variables not being passed *back* (2000)
WebCatalog for Postcards ? (1997)
dynamic giffing. (2000)
syntax question, not in online refernce (1997)
Where is Typhoon 3.x? (2000)
hidden (phantom) file downloads (2000)
File Upload (1997)
Meet your competition (2000)
[WebDNA] Status of Yosemite (2015)