Re: Grep Question - MAY NEVER BE SOLVED
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53982
interpreted = N
texte = if you want to force grep to be case insensitive. you have to do case 2 likethis:[Grep search=([Kk][Ii][Mm])&replace=
[uppercase]KIM[/uppercase]]kIm is a good dog always inthe theater[/grep]
[Kk] will look for either a "K" or a "k" (or any other letter specifiedinside the []'s).Adding a dash in the middle, [K-k], treats it as a range between K to k.Though im not sure why "hea" was selected.----- Original Message ----- From: "Kalin Mintchev"
To: "WebDNA Talk" Sent: Wednesday, November 12, 2003 2:18 PMSubject: Re: Grep Question - MAY NEVER BE SOLVED>> ok... after a few experiments i get weird stuff happaning...>> case 1:>> [Grep search=kim&replace= color="red">[uppercase]KIM[/uppercase]]kim is a good dog always in> the theater[/grep]
>> this one produces: KIM is a good dog always in the theater - which is> correct...>> csase 2:>> [Grep search=([K-k][I-i][M-m])&replace= color="red">[uppercase]KIM[/uppercase]]kim is a good dog always in> the theater[/grep]
>> produces: KIM is a good dog always in the tKIMter - huuuuu?!>> i'm trying to use case 2 to force grep to be case insensitive... note that> if i use "kIM is a... " in case 2 i get the same result...>> i'd expect both versions to produce result 1.>> considering that theater doesn't have ANY of the 3 characters (k,i,m)> why this grep is messing up theater => tKIMter - what's with the 'hea'> string that has to do with KIM?>> is that only here or somebody can explain?>> i'd really appreciate some help on this...>> this is on RH linux and is webcat 4.5... (don't have 5)....>>> thanks....>>> On Wed, 12 Nov 2003, Kenneth Grome wrote:>> > >hi all,> > >> > >i was just wondering if anybody out there sees my posts....> > >> > >the last 3 - 4 times - including the one below - i'm getting my postback> > >from the list - normally - but nobody responds and from time to timei'm> > >getting those WARNING messages from the smithmicro server that messagesto> > >my email have been bounced. i don't have any problems recieaving mailand> > >i get to see everybody else's posts....> > >> > >i'll appreciate if somebody replys to this post so i know that i'm not> > >shooting in the dark...> >> >> >> > I saw your post but I have no answer for you ... and I'll tell you why:> >> > SMSI has never documented their version of grep, nor have they ever> > helped us to find the *proper* documentation for the unique version> > of grep they licensed for use in webdna. Therefore, we have no way> > of knowing what is the proper syntax for using webdna's grep> > effectively.> >> > I can use any properly documented version of grep reliably and> > effectively all day long, but as soon as I try to use the same> > expression in webdna's undocumented grep it will fail. So obviously> > we need documentation of webdna's grep ...> >> > Where is it SMSI?> >> > Will you *ever* document webdna's grep?> >> > If not, when will you give us the name of the entity you licensed it> > from ... so we can try to get the proper documentation ourselves?> >> > :(> >>>> -------------------------------------------------------------> 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/-------------------------------------------------------------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:
if you want to force grep to be case insensitive. you have to do case 2 likethis:[Grep search=([Kk][Ii][Mm])&replace=[uppercase]KIM[/uppercase]]kIm is a good dog always inthe theater[/grep]
[Kk] will look for either a "K" or a "k" (or any other letter specifiedinside the []'s).Adding a dash in the middle, [K-k], treats it as a range between K to k.Though im not sure why "hea" was selected.----- Original Message ----- From: "Kalin Mintchev" To: "WebDNA Talk" Sent: Wednesday, November 12, 2003 2:18 PMSubject: Re: Grep Question - MAY NEVER BE SOLVED>> ok... after a few experiments i get weird stuff happaning...>> case 1:>> [Grep search=kim&replace= color="red">[uppercase]KIM[/uppercase]]kim is a good dog always in> the theater[/grep]
>> this one produces: KIM is a good dog always in the theater - which is> correct...>> csase 2:>> [Grep search=([K-k][I-i][M-m])&replace= color="red">[uppercase]KIM[/uppercase]]kim is a good dog always in> the theater[/grep]
>> produces: KIM is a good dog always in the tKIMter - huuuuu?!>> i'm trying to use case 2 to force grep to be case insensitive... note that> if i use "kIM is a... " in case 2 i get the same result...>> i'd expect both versions to produce result 1.>> considering that theater doesn't have ANY of the 3 characters (k,i,m)> why this grep is messing up theater => tKIMter - what's with the 'hea'> string that has to do with KIM?>> is that only here or somebody can explain?>> i'd really appreciate some help on this...>> this is on RH linux and is webcat 4.5... (don't have 5)....>>> thanks....>>> On Wed, 12 Nov 2003, Kenneth Grome wrote:>> > >hi all,> > >> > >i was just wondering if anybody out there sees my posts....> > >> > >the last 3 - 4 times - including the one below - i'm getting my postback> > >from the list - normally - but nobody responds and from time to timei'm> > >getting those WARNING messages from the smithmicro server that messagesto> > >my email have been bounced. i don't have any problems recieaving mailand> > >i get to see everybody else's posts....> > >> > >i'll appreciate if somebody replys to this post so i know that i'm not> > >shooting in the dark...> >> >> >> > I saw your post but I have no answer for you ... and I'll tell you why:> >> > SMSI has never documented their version of grep, nor have they ever> > helped us to find the *proper* documentation for the unique version> > of grep they licensed for use in webdna. Therefore, we have no way> > of knowing what is the proper syntax for using webdna's grep> > effectively.> >> > I can use any properly documented version of grep reliably and> > effectively all day long, but as soon as I try to use the same> > expression in webdna's undocumented grep it will fail. So obviously> > we need documentation of webdna's grep ...> >> > Where is it SMSI?> >> > Will you *ever* document webdna's grep?> >> > If not, when will you give us the name of the entity you licensed it> > from ... so we can try to get the proper documentation ourselves?> >> > :(> >>>> -------------------------------------------------------------> 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/-------------------------------------------------------------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/
"Rajeev Kumar"
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:
[returnraw] and form variables (1998)
How do I get WebCatalog to interpret WebDNA tags in .html files? (1997)
showcart (2000)
Uploading Files and Descriptions W* (2000)
Showif, Hideif reverse logic ? (1997)
2.0 Info (1997)
[searchString] (1997)
WebCatalog2 Feature Feedback (1996)
[WebDNA] help getting developer code please (2017)
WC 3.0.1 Mac days_to_date (1998)
same product in cart (1997)
PIXO support (1997)
Can you do this??? and other stuff (1997)
RE: Subtotal help (1997)
WebCatalog can't find database (1997)
searchable list archive (1997)
using showpage and showcart commands (1996)
I hate talking to myself on this list (2004)
carriage returns in data (1997)
Me know logical no need (2002)