Re: My brain is fried, can someone give me some regularexpression help please...

2000-09-17 Thread Sean Renet


That did the trick, thanks.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 16, 2000 9:15 PM
Subject: Re: My brain is fried, can someone give me some regularexpression
help please...


> How about an RegEx that removes all characters that aren't tabs and
> then count the remainder. If CF's RegEx engine supported \t it would be
> really easy. You'll have to substitute something legit for "::TAB::". I
> tried something like, REReplace(strOrderFile, #Chr(9)#, "", "ALL") in
> the past and I seem to remember that it blew up. Let me know if you
> find something that works.
>
> - Set strOrderFile = " ... "
> - Set intNumberOfTabs = Len(REReplace
> (strOrderFile, "[^::TAB::]", "", "ALL"))
>
> or, with Array conversion
>
>
>
> --

> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: My brain is fried, can someone give me some regularexpression help please...

2000-09-16 Thread sbernard

How about an RegEx that removes all characters that aren't tabs and 
then count the remainder. If CF's RegEx engine supported \t it would be 
really easy. You'll have to substitute something legit for "::TAB::". I 
tried something like, REReplace(strOrderFile, #Chr(9)#, "", "ALL") in 
the past and I seem to remember that it blew up. Let me know if you 
find something that works.

- Set strOrderFile = " ... "
- Set intNumberOfTabs = Len(REReplace
(strOrderFile, "[^::TAB::]", "", "ALL"))

or, with Array conversion



--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.