Re: String manipulation in Webcatalog

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39047
interpreted = N
texte = Laeg Ent. wrote: > > I have a number like 000004567000000 > > I am unsure how many zeros are before the actual > number and unsure how many after. I need to extract > the number. How do you do this in Webcatalog? Its > seems pretty weak on string manipulation. > [math][likenumber]+0[/math] will get you 4567000000 (since 0's after the number are usually relevant).or [grep search=0+([0-9]+)0+&replace=\1][likenumber][/grep]will strip all trailing and preceeding zeros, but preserve embedded zeros.John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: String manipulation in Webcatalog (Marc M. 2001)
  2. Re: String manipulation in Webcatalog (Marc M. 2001)
  3. Re: String manipulation in Webcatalog (John Peacock 2001)
  4. Re: String manipulation in Webcatalog (Brian Fries 2001)
  5. Re: String manipulation in Webcatalog (Laeg Ent. 2001)
  6. Re: String manipulation in Webcatalog (Laeg Ent. 2001)
  7. Re: String manipulation in Webcatalog (Laeg Ent. 2001)
  8. Re: String manipulation in Webcatalog (Anup Setty 2001)
  9. Re: String manipulation in Webcatalog (John Peacock 2001)
  10. Re: String manipulation in Webcatalog (Anup Setty 2001)
  11. String manipulation in Webcatalog (Laeg Ent. 2001)
Laeg Ent. wrote: > > I have a number like 000004567000000 > > I am unsure how many zeros are before the actual > number and unsure how many after. I need to extract > the number. How do you do this in Webcatalog? Its > seems pretty weak on string manipulation. > [math][likenumber]+0[/math] will get you 4567000000 (since 0's after the number are usually relevant).or [grep search=0+([0-9]+)0+&replace=\1][likenumber][/grep]will strip all trailing and preceeding zeros, but preserve embedded zeros.John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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://search.smithmicro.com/ John Peacock

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:

Bug or syntax error on my part? (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WebCat2 as a chat server? (1997) [OT] Democratic Code (2002) Multiple Newcarts (1996) Closing Databases (1998) [WebDNA] PCI fubar (2012) $Quit, $CloseDatabase corrections (1997) WebCat editing, SiteGuard & SiteEdit (1997) Fwd: Emailer & IMail List Server (1998) New Server? (2006) no global [username] or [password] displayed ... (1997) Sorry WebCat server not running (2001) Up and running ... at last !! (1997) WebCat2b15MacPlugin - showing [math] (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) SpiderBotLock! (2003) Processing all html files through WebCat or Typhoon (1998) Upgrading old WebCat Database Files (1997) WebCat2: multiple currency support (1997)