Ask a Question related to Macromedia ColdFusion, Design and Development.
-
Vbprog40 #1
Getting amount of Occurrences
My mind has gone blank... can't think of how to do this. I have a varable with
text in it (CFHTTP.Filecontent). I need to see how many times '<table
sytle='changeit'>' appears in that Filecontent varable. How can I do this.
Thank you!
Vbprog40 Guest
-
Strange memory occurrences with MX on XP
Running Director MX version 9.0 on Windows XP sp1: Whilst Directors Memory Inspector is running, and after playing my Driector movie through... -
Fade a sound down to a certain amount, not 0
Hi, I am fading a sound out by using the following - on exitFrame me sound(2).fadeOut(60) end This seems to work fine but can i fade the... -
Amount of data
Hello. I am writing an application, that connects to mssql server via DB-Library, and the maximum amount of data, which I can get, is only 4096... -
Amount of site explored
Hi all! I'm working on a Flash site right now which I'd like to make as 'sticky' as possible without becoming frustrating or inhibting the user to... -
How get number of occurrences in a variable?
David - Neat ! *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! -
The ScareCrow #2
Re: Getting amount of Occurrences
Use refindNoCase or refind
If you use parentheses to denote subexpressions within the regular expression,
the returnsubexpressions parameter returns the position and length of the first
match of the regular expression in the first element of the respective arrays;
the position and length of the first instance of each subexpression within the
regular expression are returned in subsequent array elements.
Ken
The ScareCrow Guest
-
Vbprog40 #3
Re: Getting amount of Occurrences
Thanks, but I need to get a total number of how many Occurrensces there are of that expression. ReFind will only tell you the position the next one is in.
Any other ideas?
Thanks
Vbprog40 Guest
-
The ScareCrow #4
Re: Getting amount of Occurrences
No, you need to read the text I posted from the docs
the position and length of the first instance of each subexpression within the
regular expression are returned in subsequent array elements.
Thus the length of this array will give you the number of occurences.
Ken
The ScareCrow Guest
-
-
Vbprog40 #6
Re: Getting amount of Occurrences
Thank you both for your help! Worked great!
Vbprog40 Guest



Reply With Quote

