I do need to say that the whitespace isn't viewable on the
browser, but in the code view I see it...and when I run the Left()
function it seems to be including the whitespace in the
count...which is the problem.
> I do need to say that the whitespace isn't viewable on
the browser, but in the code view I see it.
Yes, I understand. I tried your expression and it does not
add any extra whitespace for me. If you run these lines, what
results do you get?
This is plain text <br class="clear-both"> with some
html <h4>thrown in</h4> from
time to literal time ..<p class="time
stamp-date">08/30/2008 12:18:17 PM</p>
<!--- trim the value _before_ the regex --->
<cfset VARIABLES.stripped_content =
length = #len(VARIABLES.stripped_content)#<br>
left(97) = #left(VARIABLES.stripped_content, 97)#
Well..I thought I tried that previously but apparently I just
copy and pasted the REReplace...which obviously wouldn't work. I
didn't realize it until your comment. So I tried it and it does
better, but there is still some undesired spaces. I'll just deal
with it, it's just trying to compensate for some legacy DB entries.