All,

I am trying to do a seach on a text file that I've tucked into a variable.
There is a word in that file that I know appears three times, but when I use
the "returnsubexpressions" parameter, I only get two items in my array, and
each of the POS items are the same value.

Obviously, I am doing something wrong but I can't tell from the
documentation what I might be doing incorrectly. I know I have a lot to
learn about regular expressions.

Here's my code:

<cfset writer_pos = REFind("(writer)", mainfile_str, 1, TRUE) />

This gives me a dump of:

LEN:
1, 6
2, 6

POS:
1, 19604
2, 19604


Can someone shed some light on what I am doing wrong?

Thanks,

Leif



-------------------------------------------------------------
To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to