rex question-- pattern in first three characters

Post Reply
jkj2001
Posts: 142
Joined: Fri Mar 29, 2002 1:39 pm

rex question-- pattern in first three characters

Post by jkj2001 »

Hi,

I have some filenames stored in a database column. I'm looking for those which follow this pattern:

number number carat...

Like this, for instance (no quotes)-- "06^03 CMU RATEMOD.xls"

Could someone help me with a rex expression for this? Thanks!
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

rex question-- pattern in first three characters

Post by John »

A REX expression to match it would be:

>>=\digit\digit\^=
John Turnbull
Thunderstone Software
jkj2001
Posts: 142
Joined: Fri Mar 29, 2002 1:39 pm

rex question-- pattern in first three characters

Post by jkj2001 »

Thanks John-- why the equals sign at the end, btw?
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

rex question-- pattern in first three characters

Post by John »

That means one occurrence of the preceding subexpression (\digit\digit\^), and is not technically required at the very end of the expression, but is useful to have in case you wanted to add more to the end of the expression.
John Turnbull
Thunderstone Software
Post Reply