Re: [WebDNA] GREP question

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105136
interpreted = N
texte = --Apple-Mail-1-830862051 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Thanks Tom I had left the ( ) out which was causing the problem. Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 13/04/2010, at 9:28 PM, Tom Duke wrote: > Stuart, > > Try these: > > [grep search=([^a-zA-Z0-9])&replace=]string[/grep] > > and > > [grep search=([^a-zA-Z0-9_-])&replace=]string[/grep] > > > - Tom > > > > > On Tue, Apr 13, 2010 at 9:50 AM, Stuart Tremain wrote: > How can I GREP this: > > abcdefghijklmnopqrstuvwxyz~!@#$%^&*()_+`-={}|[]\:";'<>?,./ > 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ > > ^^^ Note the CR above > > > To Return: > abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ > > > And a second return of: > abcdefghijklmnopqrstuvwxyz_-1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ > > > --Apple-Mail-1-830862051 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Thanks Tom

I had left the (  )  out which was causing the problem.

Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA




On 13/04/2010, at 9:28 PM, Tom Duke wrote:

Stuart,

Try these:

   [grep search=([^a-zA-Z0-9])&replace=]string[/grep]

and

   [grep search=([^a-zA-Z0-9_-])&replace=]string[/grep]


- Tom




On Tue, Apr 13, 2010 at 9:50 AM, Stuart Tremain <webdna@idfk.com.au> wrote:
How can I GREP this:

abcdefghijklmnopqrstuvwxyz~!@#$%^&*()_+`-={}|[]\:";'<>?,./ 
1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ

^^^ Note the CR above


To Return:
abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ


And a second return of:
abcdefghijklmnopqrstuvwxyz_-1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ




--Apple-Mail-1-830862051-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] GREP question (Stuart Tremain 2010)
  2. Re: [WebDNA] GREP question (Tom Duke 2010)
  3. [WebDNA] GREP question (Stuart Tremain 2010)
  4. Re: [WebDNA] grep question (Kenneth Grome 2009)
  5. Re: [WebDNA] grep question (Stuart Tremain 2009)
  6. Re: [WebDNA] grep question (Matthew Bohne 2009)
  7. Re: [WebDNA] grep question (Kenneth Grome 2009)
  8. Re: [WebDNA] grep question (Matthew Bohne 2009)
  9. Re: [WebDNA] grep question (Kenneth Grome 2009)
  10. Re: [WebDNA] grep question (Matthew Bohne 2009)
  11. Re: [WebDNA] grep question (William DeVaul 2009)
  12. Re: [WebDNA] grep question (Stuart Tremain 2009)
  13. [WebDNA] grep question (Kenneth Grome 2009)
  14. Re: [WebDNA] GREP Question (Steve Craig 2009)
  15. Re: [WebDNA] GREP Question (Tom Duke 2009)
  16. [WebDNA] GREP Question (Steve Craig 2009)
--Apple-Mail-1-830862051 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Thanks Tom I had left the ( ) out which was causing the problem. Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 13/04/2010, at 9:28 PM, Tom Duke wrote: > Stuart, > > Try these: > > [grep search=([^a-zA-Z0-9])&replace=]string[/grep] > > and > > [grep search=([^a-zA-Z0-9_-])&replace=]string[/grep] > > > - Tom > > > > > On Tue, Apr 13, 2010 at 9:50 AM, Stuart Tremain wrote: > How can I GREP this: > > abcdefghijklmnopqrstuvwxyz~!@#$%^&*()_+`-={}|[]\:";'<>?,./ > 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ > > ^^^ Note the CR above > > > To Return: > abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ > > > And a second return of: > abcdefghijklmnopqrstuvwxyz_-1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ > > > --Apple-Mail-1-830862051 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Thanks Tom

I had left the (  )  out which was causing the problem.

Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA




On 13/04/2010, at 9:28 PM, Tom Duke wrote:

Stuart,

Try these:

   [grep search=([^a-zA-Z0-9])&replace=]string[/grep]

and

   [grep search=([^a-zA-Z0-9_-])&replace=]string[/grep]


- Tom




On Tue, Apr 13, 2010 at 9:50 AM, Stuart Tremain <webdna@idfk.com.au> wrote:
How can I GREP this:

abcdefghijklmnopqrstuvwxyz~!@#$%^&*()_+`-={}|[]\:";'<>?,./ 
1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ

^^^ Note the CR above


To Return:
abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ


And a second return of:
abcdefghijklmnopqrstuvwxyz_-1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ




--Apple-Mail-1-830862051-- Stuart Tremain

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:

multi-paragraph fields (1997) Email...Thanks (1997) web merchant (2000) 2nd WebCatalog2 Feature Request (1996) [OT] Basic
weirdness ... (2006) Sample Email Catalog Order? (1998) Calculating multiple shipping... (1997) Return records from another (1997) Quit revisited (1997) authenticate and password (1998) Close-to Comparison Code (1998) [WebDNA] Serial numbers and pricing for WebDNA 7.0 (2011) HTML Editors (1997) Initiating NewCart (1997) Problem with [CART] number (1998) WebDNA monitor not working (2002) ShowIf variables (1997) [WebDNA] WebDNA Server 8.6.2 snapshot available (2019) installing webcatalog problem. HELP! (1998) protect acting looney?? (2003)