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 afterthe number are usually relevant).or [grep search=0+([0-9]+)0+&replace=\1][likenumber][/grep]will strip all trailing and preceeding zeros, but preserve embeddedzeros.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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:
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 afterthe number are usually relevant).or [grep search=0+([0-9]+)0+&replace=\1][likenumber][/grep]will strip all trailing and preceeding zeros, but preserve embeddedzeros.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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)