RegEx rookie question

2002-02-22 Thread Howie Hamlin
Is there a way to check for a character in a specific position in a string? For example, say I want to make sure that the 10th character in a string is an X. This would be a match: 123456789X12345 Would I have to use a pattern like ?X or is there something more elegant? Using

Re: RegEx rookie question

2002-02-22 Thread savan . thongvanh
how about /^[a-z0-9]{n}X/i where n is the index of the character and X is the character? Howie Hamlin [EMAIL PROTECTED] on 02/22/2002 11:50:58 AM Please respond to [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] cc: Subject: RegEx rookie question Is there a way to check

RE: RegEx rookie question

2002-02-22 Thread Steve Oliver
- From: Howie Hamlin [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 12:51 PM To: CF-Talk Subject: RegEx rookie question Is there a way to check for a character in a specific position in a string? For example, say I want to make sure that the 10th character in a string is an X

RE: RegEx rookie question

2002-02-22 Thread Matthew R. Small
How about: mid(string,10,1) eq 'X' - Matt Small -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 1:01 PM To: CF-Talk Subject: Re: RegEx rookie question how about /^[a-z0-9]{n}X/i where n is the index of the character and X

Re: RegEx rookie question

2002-02-22 Thread Howie Hamlin
Thanks, I appreciate it. Regards, Howie - Original Message - From: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, February 22, 2002 1:00 PM Subject: Re: RegEx rookie question how about /^[a-z0-9]{n}X/i where n is the index of the character and X