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:

Interpret twice? (1997) RE: WebDNA-Talk searchable? (1997) Requiring that certain fields be completed (1997) Webcat no longer supported? (2006) WebMerchant issues. [Resent] (2000) Date search - yes or no (1997) Not really WebCat (1997) CC and Europe (1999) Not really WebCat (1997) [SearchString] problem with [search] context (1997) Uploading out of FMP (2001) passing large amount of text in post form (2005) [protect admin] (1997) Solution: Replace/Commit not Replacing/Commiting (2000) Date field search needs ... (1998) Verisigns SDK (pay flo pro) (2002) WebCat cannot handle compatible search parameters? (1997) CommitDatabase vs. CloseDatabase (2001) I have troubles to send message out (1998) Frames (1997)