How to exclude CR and LF of an Char Set in an Regular Expression
From: Antonio Cambule (antonio_at_stueber.de)
Date: 01/15/04
- Next message: J French: "Re: RemoveDir doesn't work with W2000 and XP but under W98"
- Previous message: J French: "Re: Variable removed due to Optimization!!!"
- Next in thread: AlanGLLoyd: "Re: How to exclude CR and LF of an Char Set in an Regular Expression"
- Reply: AlanGLLoyd: "Re: How to exclude CR and LF of an Char Set in an Regular Expression"
- Maybe reply: Antonio Cambule: "Re: How to exclude CR and LF of an Char Set in an Regular Expression"
- Reply: VBDis: "Re: How to exclude CR and LF of an Char Set in an Regular Expression"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 15 Jan 2004 12:48:52 +0100
Hi,
I use D7 with TRegExpr to Parse for Regular Expressions.
I need to do this:
Source: Sample {Carriage Return}
Te xt
What I want: S,a,m,p,l,e,T,e,x,t
What I get: S,a,m,p,l,e,
,
Te,,x,t
The Parser should find every single Character except an CR and an LF.
What I did:
[\x01-\xF7] <-- Finds all Characters I need + CR and LF. But I don't
want to have CR and LF.
I tried these:
1. [\x01-\xF7^\x0a\a0d]
2. [\x01-\xF7][^\x0a\a0d]
Nothing realy did it. I couldn't find an example for this case. So I'm
in need of help.
regards
Antonio Cambule
- Next message: J French: "Re: RemoveDir doesn't work with W2000 and XP but under W98"
- Previous message: J French: "Re: Variable removed due to Optimization!!!"
- Next in thread: AlanGLLoyd: "Re: How to exclude CR and LF of an Char Set in an Regular Expression"
- Reply: AlanGLLoyd: "Re: How to exclude CR and LF of an Char Set in an Regular Expression"
- Maybe reply: Antonio Cambule: "Re: How to exclude CR and LF of an Char Set in an Regular Expression"
- Reply: VBDis: "Re: How to exclude CR and LF of an Char Set in an Regular Expression"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|