Re: [WebDNA] Formatting text
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 107194
interpreted = N
texte = To match parentheses, you need to escape them using a \, i.e. \(Text1\).Here's one way to try if you always have at least two numbers in thematch series:[grep search=([0-9][0-9][0-9]*) \(Text1\)&replace=\1]456678 (Text1)33467 (Text1)[/grep] (Text 1)This goes ahead and removes the (Text1) and inserts it at the end.BillOn Wed, Aug 10, 2011 at 10:32 AM,
wrote:> Hello,>> I have some text as such>> 456678 (Text1) 33467 (Text1)>> I am unsure how to make this turn into>> 456678 33467 (Text1)>> I've tried with Grep, but that just removes the Text1, and leaves the ()> and I only need to remove the first instance of the Text1>> [Grep search=((Text1))&replace=]456678 (Text1) 33467 (Text1)[/Grep]>> This just gives> 456678 () 33467 ()>> Then I tried matching the (), but I couldnt figure out how to do that, I> don't use regex alot, and even less webdna grep.>> I figured if I could remove the Text1 and then the ()>> I could add my (Text1) when I was done processing it.>> Does anyone have any other ideas?>> The text could end up as 456678 (Text1) 33467 (Text1) 48789 (Text1) as> well, with arbitarily long occurances of text, but always with the same> format>> number (text) number (text)>> /Tommy>>>>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us>
Associated Messages, from the most recent to the oldest:
To match parentheses, you need to escape them using a \, i.e. \(Text1\).Here's one way to try if you always have at least two numbers in thematch series:[grep search=([0-9][0-9][0-9]*) \(Text1\)&replace=\1]456678 (Text1)33467 (Text1)[/grep] (Text 1)This goes ahead and removes the (Text1) and inserts it at the end.BillOn Wed, Aug 10, 2011 at 10:32 AM, wrote:> Hello,>> I have some text as such>> 456678 (Text1) 33467 (Text1)>> I am unsure how to make this turn into>> 456678 33467 (Text1)>> I've tried with Grep, but that just removes the Text1, and leaves the ()> and I only need to remove the first instance of the Text1>> [Grep search=((Text1))&replace=]456678 (Text1) 33467 (Text1)[/Grep]>> This just gives> 456678 () 33467 ()>> Then I tried matching the (), but I couldnt figure out how to do that, I> don't use regex alot, and even less webdna grep.>> I figured if I could remove the Text1 and then the ()>> I could add my (Text1) when I was done processing it.>> Does anyone have any other ideas?>> The text could end up as 456678 (Text1) 33467 (Text1) 48789 (Text1) as> well, with arbitarily long occurances of text, but always with the same> format>> number (text) number (text)>> /Tommy>>>>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us>
William DeVaul
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:
[WebDNA] Authentication across domains (2009)
Webstar 1.3.1 PPC (1997)
OT: OSX calculator error (2004)
[carts] and databases (1997)
encrypt (2000)
Credit Card Gateways (2005)
Bad suffix error (1997)
Phantom Sendmail (2005)
sorting dates (1999)
RE: WebCat cannot handle compatible search parameters? (1997)
WSDL Wizard (2003)
mimeheaders to allow back button to work on a posted page? (2004)
Re:multiple digests, please stop (1997)
File Upload (1997)
[WebDNA] Still having problems (2008)
Re:quit command on NT (1997)
Slow applescript context ... (2000)
WebCat2b12 forgets serial # (1997)
Separate SSL Server (1997)
(1997)