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:

Another question (1997) Digest for 4/18/97 (1997) trouble updating records in database (1998) RE: MS Commerce Comparison (long) (1998) Extracting URL (2007) [WriteFile] problems (1997) Fun with Dates - revisited (again) (1997) WordBreak Qestion (part 2) (1998) [WebDNA] BUG REPORT [MATH show=t] WebDNA 8.6.1 & 8.6.3 server (2019) Alias Problem (2002) Webcatalog quitting (1997) Need relative path explanation (1997) [WebDNA] Delete founditems (2010) Claris HomePage messes up the code (1997) SiteGuard Use Question (1997) Signal Raised Error (1997) spaces in db (2001) fresh eyes needed. Append won't work. (2000) Permissions (2000) Date search - yes or no (1997)