Re: Grep issue
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47105
interpreted = N
texte = + might not need to be escaped in webcat - all though i'm not sure - youhave probably tried it anyway.----- Original Message -----From: Rajeev Kumar
To: WebCatalog Talk Sent: Thursday, January 23, 2003 1:46 PMSubject: Grep issue> Hi,>> I am having a bit of an issue with Grep and special characters. I amtrying> to strip of the + character from a number, while replacing it with 0.> Basically changing an international phone number, into the local form (eg:> +6129999999 -> 0299999999).>> I read the BBedit notes for grep, applied those principles, but its still> not working.>> It works for the * character:>> [text show=t]number=*61414200200[/text]
> [text show=t]number=[grep search=^\*?61&replace=0][number][/grep][/text]>> >>output>>>> *61414200200> 0414200200>> But not for the + character:>> [text show=t]number= +61414200200[/text]
> [text show=t]number=[grep search=^\+?61&replace=0][number][/grep][/text]>> >>output>>>> +61414200200> +61414200200>>> According to BBedit, they are both similar types of special characters,and> the way to escape special characters is with a \. But I don't get why this> isn't working. Any ideas?>> Thanks,>> Raj>>> BBEdit Grep Tutorial: http://www.anybrowser.org/bbedit/grep.shtml>>>> -------------------------------------------------------------> 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:
+ might not need to be escaped in webcat - all though i'm not sure - youhave probably tried it anyway.----- Original Message -----From: Rajeev Kumar To: WebCatalog Talk Sent: Thursday, January 23, 2003 1:46 PMSubject: Grep issue> Hi,>> I am having a bit of an issue with Grep and special characters. I amtrying> to strip of the + character from a number, while replacing it with 0.> Basically changing an international phone number, into the local form (eg:> +6129999999 -> 0299999999).>> I read the BBedit notes for grep, applied those principles, but its still> not working.>> It works for the * character:>> [text show=t]number=*61414200200[/text]
> [text show=t]number=[grep search=^\*?61&replace=0][number][/grep][/text]>> >>output>>>> *61414200200> 0414200200>> But not for the + character:>> [text show=t]number= +61414200200[/text]
> [text show=t]number=[grep search=^\+?61&replace=0][number][/grep][/text]>> >>output>>>> +61414200200> +61414200200>>> According to BBedit, they are both similar types of special characters,and> the way to escape special characters is with a \. But I don't get why this> isn't working. Any ideas?>> Thanks,>> Raj>>> BBEdit Grep Tutorial: http://www.anybrowser.org/bbedit/grep.shtml>>>> -------------------------------------------------------------> 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/
Andrew Simpson
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:
Protect (1997)
Template Security error (1997)
b12 cannot limit records returned and more. (1997)
Requiring that certain fields be completed (1997)
Getting Values into Cart the easy way?* (1998)
Bug? (1997)
Grep Help (2007)
Re:2nd WebCatalog2 Feature Request (1996)
WebCatalog/Mac 2.1b2 - PIXO (1997)
problems with 2 tags (1997)
WebCat Documentation (was [platform] tag?) (1998)
Help name our technology! (1997)
WebCat2 beta 11 - new prefs ... (1997)
WebCatalog can't find database (1997)
RE: free zip codes database (1999)
carriage returns in data (1997)
WebCatalog v2.1.1 (1998)
Max Record length restated as maybe bug (1997)
WebCat2b12 - New features for 1.6 users ... (1997)
problem: search crashes webstar (1997)