Hi David,
I just wanted to let you know that I appreciate the new information on
the :space: paramater of the ReFindNoCase function.
I am still struggling with trying to get the function to return a structure
with more then one instance of what I am looking for.
For example. If I understand the help files of CF Studio ReFindNoCase
should be able to create a structure like this:
st.pos[1] = 1
st.len[1]=10
st.pos[2]=15
st.pos[2]=5
st.pos[3]=34
st.len[3]=26
........
etc.
of whatever type of character you are looking for.
I must be misunderstanding how this function works because I can not
seem to get it to perform in this manner even though the documentation
looks like it will produce the result above. I can only get it to come
back with one set of the .pos and .len elements.
Anyway, thanks again for the information, it was definately helpful to
know.
Cheers
Ryan Williams
"David Huyck"
<b@bombusbee. To: Fusebox <[EMAIL PROTECTED]>
com> cc:
Subject: Re: Slightly OT question ...
05/09/01
12:49 PM
Please
respond to
fusebox
the regEx escape charqacter for spaces in CF is [:space:]. So you would
do:
<cfset st=REFindNoCase("[[:space:]]+",
qGet_MeetingMinutes.MM_BodyOfMeeting,1,"TRUE")>
To find "hard returns" I would look for CRLFs (carriage return/line feeds)
by
doing:
FindNoCase("#char(13)##char(10)#", ...) I'm not sure what the regular
expression equiv would be off the top of my head.
HTH,
David Huyck
[EMAIL PROTECTED]
| Here is a snippet of my current code.
|
| <cfset st=REFindNoCase("([ ])
| +(\1)",qGet_MeetingMinutes.MM_BodyOfMeeting,1,"TRUE")> (this line was my
| attempt at finding blank spaces longer then 1 space within the text
string
| - it didnt work.)
| <cfset request.RowNum=(len(qGet_MeetingMinutes.MM_BodyOfMeeting)/66)+3>
|
| <textarea name="BodyOfMeetingMinutes" cols="66" rows="#request.RowNum#"
| wrap="soft">#trim(qGet_MeetingMinutes.MM_BodyOfMeeting)#</textarea>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists