, May 05, 2011 5:43 PM
> To: cf-talk
> Subject: converting sed to rereplace ...
>
>
> I am trying to convert strings:
>
> (A XXX)(B YYY)(C ZZZ) etc.
>
> to
>
> XXXYYYZZZ etc.
>
> This works in sed:
>
> echo "(A XXX)(B YYY)(C ZZZ)" | \
>
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original Message-
From: Rick Colman [mailto:rcol...@cox.net]
Sent: Thursday, May 05, 2011 5:43 PM
To: cf-talk
Subject: converting sed to rereplace ...
I am trying to convert strings:
(A XXX)(B
I am trying to convert strings:
(A XXX)(B YYY)(C ZZZ) etc.
to
XXXYYYZZZ etc.
This works in sed:
echo "(A XXX)(B YYY)(C ZZZ)" | \
sed -n '
{
s/([A-Z]* \([A-Z]*\))/\1/g
p
}
'
but when I put it into rereplace, like:
I am getting:
\([A-Z]*\))//gp(\([A-Z]*\))//gp
\(
...until you need to hire five new developers in any place that isn't
California.
:(
On Fri, Nov 19, 2010 at 11:04 AM, Gerald Guido wrote:
>
> >> I simply added this to my custom tag and it does just what its supposed
> to!
>
> Yep. Reason 32,657 why CF Roxorz.
>
> G!
>
> On Fri, Nov 19, 2010 a
>> I simply added this to my custom tag and it does just what its supposed
to!
Yep. Reason 32,657 why CF Roxorz.
G!
On Fri, Nov 19, 2010 at 10:24 AM, Joel Black wrote:
>
> Gerald, was the key. I didnt even have to savecontent
> or anything else. I simply added this to my custom tag and it
Slightly OT, but I suspect this indicates that your app would benefit from a
separation of display logic and business logic.
On Fri, Nov 19, 2010 at 10:24 AM, Joel Black wrote:
>
> Gerald, was the key. I didnt even have to savecontent
> or anything else. I simply added this to my custom tag
Gerald, was the key. I didnt even have to savecontent or
anything else. I simply added this to my custom tag and it does just what its
supposed to!
Never even knew this tag existed, thanks a million!
~|
Order the Adobe Col
>Your title -
>#Yourvaraible#
>
>
>This will put #pageTitle# in the head of the document.
>
>
>
>On Thu, Nov 18, 2010 at 4:05 PM, Joel Black wrote:
>
>>
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe
1:05 PM
To: cf-talk
Subject: Re: Variable before query, rereplace or javascript to change title
Wrap the custom tag in a cfsavecontent tag at the top of the page:
I tried to do this, but the query.title doesnt read the query within the
save content. I also tried to set a variable within the cust
Your title -
#Yourvaraible#
This will put #pageTitle# in the head of the document.
On Thu, Nov 18, 2010 at 4:05 PM, Joel Black wrote:
>
> Wrap the custom tag in a cfsavecontent tag at the top of the page:
>
>
> I tried to do this, but the query.title doesnt read the query within the
> sav
Wrap the custom tag in a cfsavecontent tag at the top of the page:
I tried to do this, but the query.title doesnt read the query within the save
content. I also tried to set a variable within the custom tag and pull that
out...but no success there either. What if i set an application variabl
>Wrap the custom tag in a cfsavecontent tag at the top of the page:
>
I gave this a try, but when I wrap it in the savecontent, its not reading the
query when I put it in the title
~|
Order the Adobe Coldfusion Anthology now!
h
query, rereplace or javascript to change title
I created a custom tag I can reuse, which runs a news manager. I would like
to optimize it for search engines, but here is my issue:
1. The query and output are in the custom tag, which goes in the main
content of the page
2. I want the news title
>>2. I want the news title to be in the page title, but I cant put an output
>>before a query that I know of
No, but you can run the query before any HTML, ie :
SELECT title, ...
#myQuery.title#
~|
Order the Adobe
output
before a query that I know of
3. Not sure if an ReReplace will work in this situation either
4. I know I can do it with javascript, but javascript is client side and will
not change the title in time for a search engine to catch it will it?
Any input would be greatly appreciated. Example
try this:
Azadi
On 02/11/2010 20:34 , Richard White wrote:
> Hi, i need to replace all repeating commas in a string with only one comma,
> plus remove the trailing comma, have tried a few different routes
> unsuccessfully and would appreciate any input:
>
> for example i would the the string:
thanks for the reply, i actually just found a shortcut! i converted the string
to an array which removed any empty array elements, and then converted back to
a list and therefore deleted all the duplicate, and trailing commas
>I am sure there are some nice slick regular expressions to do thi
I am sure there are some nice slick regular expressions to do this, but I
just simply do this a very dumbed down way.
You could also write a loop to run until FindNoCase(myVar, ",,") EQ FALSE,
so you keep turning double commas, into single commas which will continue to
reduce the commas, unt
Hi, i need to replace all repeating commas in a string with only one comma,
plus remove the trailing comma, have tried a few different routes
unsuccessfully and would appreciate any input:
for example i would the the string: 'Genns,,DrBish Stratford,,,'
to become: 'Genns,Dr,Bish Stratford'
This will replace everything that is not alphanumeric with a dash:
ProductPageName = rereplace( Form.PageName , '\W' , '-' , 'All' )
However, the above will change "this & that" to "this---that", if you would
prefer a singl
also, if you are replace all non alpha-numeric characters you can do
this:reReplace(arguments.txt,
'[^[:alnum:].]', '-', 'all');
~Mahcsig
On Wed, Oct 21, 2009 at 8:57 AM, Glyn Jackson wrote:
>
> Makes sense, thanks you.
>
>
~~~
Makes sense, thanks you.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327452
If you want it in one line, just combine them:
productPageName =
Replace(REReplace(FORM.pageName,"[.*+?^${}()|[\]/\\]","","All"),"
","-","All");
BTW, you don't the the #'s inside of a function unless the variable is
in q
put these two lines of code into a UDF.
On Wed, Oct 21, 2009 at 11:07 AM, Glyn Jackson
wrote:
>
> I am just going over some old code, I found the following...
>
> productPageName = Replace(#FORM.pageName#," ","-","All");
> productPageName = REReplace(#pr
I am just going over some old code, I found the following...
productPageName = Replace(#FORM.pageName#," ","-","All");
productPageName = REReplace(#productPageName#,"[.*+?^${}()|[\]/\\]","","All");
its seems like its create a page nam
[q]
FileName = rereplace(FileName, '(?!\.[^.]*$)\W', '', 'all')
[/q]
well, that is just beautiful!
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
~|
Adobe® ColdFusion® 8 software 8 is t
shunting
together multiple commands. :P
FileName = rereplace( FileName , '(?!\.[^.]*$)\W' , '' , 'all' )
Strips all non-word characters, excluding the final dot (if any).
Although, thinking a bit more... for general purpose use, I might not bother
strip
w about this one:
since this one is a tad bit shorter, will you consider it, maybe, just
"ugly" or just "eugh"? :)
or how about this rereplace-only one:
(filename splitting regex courtesy of
http://www.movingtofreedom.org/2008/04/01/regex-match-filename-base-and-exten
My follow-up posted last night didn't show up. So, I'm re-doing it now.
Execellent, Peter, thank you very much.
I'll use
rereplace( FileName , '\W' , '' , 'all' )
On the extension stuff I have a way to address it.
Don
>> rereplace(foo, '
>better then just do something like
>
>rereplace(left(filename, len(filename)-len(listlast(filename, ".")-1),
>"\W", "", "all")
Eugh. Ugly!
And doesn't restore the extension afterwards, so "my-image-nam
better then just do something like
rereplace(left(filename, len(filename)-len(listlast(filename, ".")-1),
"\W", "", "all")
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Peter Boughton wrote:
> Hmmm, another thought...
> Don, when you say &
Sorry, typo. :(
> In CFML/rereplace it is treated as [a-zA-Z0-9_] (not the underscore).
That should say "note" rather than "not".
Underscore is included in \w (and excluded from \W) which is not what some
p
> I also found out that REreplace(str, "[^a-zA-Z0-9]",
> "","all")
> would achieve the same result but yours seems more elegant (which
> seems to say just keep {words}), my CF env = cf8 or cf81 for Windows,
> does your solution have any dependency?
Hmmm, another thought...
Don, when you say "image file name", is there a file extension to worry about
(i.e. jpg/png/etc)
If so, you'll want to be doing something like this...
rereplace( FileName , '(png|jpg|gif|tif|bmp)$' , '.\0' )
after the initial r
On Wed, Dec 10, 2008 at 3:02 PM, Peter Boughton <[EMAIL PROTECTED]> wrote:
> > rereplace(foo, '[^\w]', '', 'all')
> > will replace any non-alphanumeric character
>
> No need to complicate things with an inverted character class.
> \W is
> rereplace(foo, '[^\w]', '', 'all')
> will replace any non-alphanumeric character
No need to complicate things with an inverted character class.
\W is same as [^\w]
Also, this bugs me immensely:
> assuming 'foo' is the file name
JUST USE THE
>rereplace(foo, '[^\w]', '', 'all')
>will replace any non-alphanumeric character in 'foo' (assuming 'foo' is the
>file name).
>
>
>On Wed, Dec 10, 2008 at 1:41 PM, D
>
Great. Thank you. I also found out that REreplace(str,
rereplace(foo, '[^\w]', '', 'all')
will replace any non-alphanumeric character in 'foo' (assuming 'foo' is the
file name).
On Wed, Dec 10, 2008 at 1:41 PM, Don L <[EMAIL PROTECTED]> wrote:
> Regular Expression gurus. How to use the
Regular Expression gurus. How to use the REreplace function to remove special
characters including "+", "." in an image file name? The ReplaceList function
may miss some unexpected special characters for we don't know what sort of
special character may show up in a dy
>The \b actually did not work, it put the link within the first span element
>but maybe was how I tested it. I tried: "(?![)(\b)(sub)(\b)" as
>well as "(?![)\b(sub)\b"
>
Ah, you need to change your \2 to \1 in your replace part.
Since the \b is zero-width, it looks like it wont populate a back
The \b actually did not work, it put the link within the first span element
but maybe was how I tested it. I tried: "(?![)(\b)(sub)(\b)" as
well as "(?![)\b(sub)\b"
On Fri, Nov 7, 2008 at 10:49 AM, s. isaac dealey <[EMAIL PROTECTED]> wrote:
> > That's the \W bits you're using - they're wrong;
> That's the \W bits you're using - they're wrong; you want a
> zero-width word boundary, not a non-word character.
>
> Use \b(#Variables.Word#)\b and you wont need to do the workaround.
Thanks Peter... I'd never used word boundaries... so of course, they
don't occur to me when I go to write a r
Thanks, I will try that out locally and make a note to apply it the next
time I am in there since I already initiated the push process to get the
changes into place.
On Fri, Nov 7, 2008 at 8:03 AM, Peter Boughton <[EMAIL PROTECTED]> wrote:
> >we ultimately came up with this:
> >"(?![ >
> >The onl
>we ultimately came up with this:
>"(?![
>The only downside that we found is if the word is at the very end or
>beginning of the paragraph.
That's the \W bits you're using - they're wrong; you want a zero-width word
boundary, not a non-word character.
Use \b(#Variables.Word#)\b and you wont need
been using REReplace to find key words or group of words within
> >paragraphs and if found to replace those with an HREF.
>
>
> The following code works.
> (I haven't yet decided whether
>I have been using REReplace to find key words or group of words within
>paragraphs and if found to replace those with an HREF.
The following code works.
(I haven't yet decided whether it's entirely the
I have been using REReplace to find key words or group of words within
paragraphs and if found to replace those with an HREF. All has been working
fine and well until recently when one of those key words became "sub" and
some paragraphs make use of the HTML element SUB. So what I am
reReplace Backreference as StructKey or Argument
Ben,
Agreed, the Len/Pos array loops are ugly and a pain to deal with.
Hence my attempts to bypass all of that by finding a way to pass the
backreference directly in reReplace... :-)
Got around to running timers comparing reFind and your
Ben,
Agreed, the Len/Pos array loops are ugly and a pain to deal with.
Hence my attempts to bypass all of that by finding a way to pass the
backreference directly in reReplace... :-)
Got around to running timers comparing reFind and your reMatchGroups
function against each other.The
usion MX7 Developer
www.bennadel.com
Need ColdFusion Help?
www.bennadel.com/ask-ben/
-Original Message-
From: Jon Clausen [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2007 8:17 PM
To: CF-Talk
Subject: Re: Using reReplace Backreference as StructKey or Argument
Ben,
Thanks fo
("argument") ) but I've failed in all my
>> attempts so far.
>>
>> For now I've written the code out using a loop with reFind(),
>> returning subexpressions, mid(), etc. but it seems to me there should
>> be a way to do this using reReplace() an
at 11:35 AM, Ben Nadel wrote:
> Jon,
>
> You cannot do that because the arguments of the REReplace() method are
> eveluated at the initial method execution time. Back references
> within a
> string are fine because they are evaluated within the inner working of
> the RERepal
Jon,
You cannot do that because the arguments of the REReplace() method are
eveluated at the initial method execution time. Back references within a
string are fine because they are evaluated within the inner working of
the RERepalce() method. However, you cannot use them as part of another
function("argument") ) but I've failed in all my
> attempts so far.
>
> For now I've written the code out using a loop with reFind(),
> returning subexpressions, mid(), etc. but it seems to me there should
> be a way to do this using reReplace() and pass the
written the code out using a loop with reFind(),
returning subexpressions, mid(), etc. but it seems to me there should
be a way to do this using reReplace() and pass the backreference as an
argument/key. Usage of evaluate() would probably be a deal-breaker
since it would be less expensive to p
I think you want Replace(), not ReReplace(). ReReplace is trying to use a RegEx
to make the replacement, Replace will do the straight text match/replace.
>I'm trying to replace the .jpg file extension on in a string with .gif and
>using the following regex.
>
>
Thanks Adrian,
Its working fine now.
Rob
-Original Message-
From: Adrian [mailto:[EMAIL PROTECTED]
Sent: 04 May 2007 16:01
To: CF-Talk
Subject: Re: ReReplace
Not sure why you're using ReReplace, just use Replace. Characters like "."
have special meanings in ReReplace
Not sure why you're using ReReplace, just use Replace. Characters like "."
have special meanings in ReReplace.
On 04/05/07, Robert Rawlins - Think Blue <
[EMAIL PROTECTED]> wrote:
>
> I'm trying to replace the .jpg file extension on in a string with .gif
I'm trying to replace the .jpg file extension on in a string with .gif and
using the following regex.
ARGUMENTS.File is a string that looks like 'myfile.jpg'
Am I missing something here?
Thanks,
Rob
~|
Upgra
scriptor (literally, journal, book
> etc.) in some cases it can contain a slash (/) or a semicolon.
>
> What I need to do within the REReplace is find every instance of a slash or
> a semicolon and put a space before it and a space after it..
>
>
>
> Thanks
>
>
This should work:
reReplace(myVar,"([;/])"," \1 ","all")
It uses a technique called back references, which allows you to use
the strings that match the regex in your replacement string (that's
what the "\1" is).
On 3/28/07, Scott Stewart <[EMAIL P
IÂve got a variable which is a document descriptor (literally, journal, book
etc.) in some cases it can contain a slash (/) or a semicolon.
What I need to do within the REReplace is find every instance of a slash or
a semicolon and put a space before it and a space after it..
Thanks
sas
erm, not using a regex, so no need for rereplace?
On 20/12/06, Ben Nadel <[EMAIL PROTECTED]> wrote:
>
> Probably because "(" is a reserved character for GROUPS in regular
> expression. Try escaping:
>
> Form.City1,
> &q
OTECTED]
Sent: Wednesday, December 20, 2006 9:34 AM
To: CF-Talk
Subject: in REREPLACE ")" works but not "("
I cannot findout why this works:
and this does not:
the problem is when the string to be replaced is "(" or chr(40). The
character replacing it can be &
sk-ben/
-Original Message-
From: paul zanini [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 20, 2006 9:34 AM
To: CF-Talk
Subject: in REREPLACE ")" works but not "("
I cannot findout why this works:
and this does not:
the problem is when the string to be replaced
I cannot findout why this works:
and this does not:
the problem is when the string to be replaced is "(" or chr(40). The character
replacing it can be "(" or "(" it does not matter, it would work as long the
first one is ")"
Any ideas?
~
One tip - your second statement isn't a regex. It would make more
sense to just use replace, not rereplace.
On 11/29/06, Les Mizzell <[EMAIL PROTECTED]> wrote:
> > On 11/29/06, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> >> as far as i can tell, it -woul
> On 11/29/06, Charlie Griefer <[EMAIL PROTECTED]> wrote:
>> as far as i can tell, it -would- be two rereplace() statements.
I'm not as crazy as I thought then. Yup, using two statements works great...
OK, where's the Elmer's so I
Oh shoot, sorry. I missed the requirement to change spaces to + and
commas to nothing.
replaceList may work as well. Although you can't use [:space:] in that case.
On 11/29/06, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> as far as i can tell, it -would- be two rereplace() statemen
as far as i can tell, it -would- be two rereplace() statements.
you're looking to replace two elements with two different elements.
it would be different if, let's say you wanted to replace all spaces
and commas with a single element (either a space or nothing)...but
you're lo
Change your regex to this
[[:space:],]
That should work.
On 11/29/06, Les Mizzell <[EMAIL PROTECTED]> wrote:
> I don't know why, but I always get a headache when working with
> ReReplace and RegEx stuff...
>
> OK, I need to replace *all* spaces with a "+":
I don't know why, but I always get a headache when working with
ReReplace and RegEx stuff...
OK, I need to replace *all* spaces with a "+":
REReplace ("#request.mySTRING#","[[:space:]]","+","ALL")
That works fine.
But ... and there
On Tuesday 31 October 2006 16:41, Claude Schneegans wrote:
> >>Just write proper JavaScript, avoiding the nasty IE hacks and
> known specifics and it'll run in IE and FF without issue.
> If you just stick to what's standard, you will not go very far.
Well, yes, innerHTML :-)
But things like that
On Tuesday 31 October 2006 15:47, Claude Schneegans wrote:
> I'll be glad to update it for FF,... when they publish a decent docs
> about all features,
Why bother* ? Just write proper JavaScript, avoiding the nasty IE hacks and
known specifics and it'll run in IE and FF without issue.
> If a dev
>>This product can be used only with Internet Explorer 5.5+ under Windows.
Sorry about that. When I started this project, FireFox didn't even exist.
Although the Javascipt code used in the REwizard is fairly complex,
I'll be glad to update it for FF,... when they publish a decent docs
about all
>>Just write proper JavaScript, avoiding the nasty IE hacks and
known specifics and it'll run in IE and FF without issue.
If you just stick to what's standard, you will not go very far.
I do not use much Javascript in the public parts of my sites,
si I can easily keep it compatible.
But in the a
On 10/31/06, Claude Schneegans <[EMAIL PROTECTED]> wrote:
> >>This product can be used only with Internet Explorer 5.5+ under Windows.
>
> Sorry about that. When I started this project, FireFox didn't even exist.
> Although the Javascipt code used in the REwizard is fairly complex,
> I'll be glad
On Monday 30 October 2006 15:19, Claude Schneegans wrote:
> http://www.contentbox.com/claude/REwizard/index.cfm?p=h
"This product can be used only with Internet Explorer 5.5+ under Windows."
Pfft.
>delete<
--
Tom Chiverton
Helping to preemptively disseminate killer technologies
27;), tld, ''))-2) & '.' & tld;
return maskedemail;
}
#maskemail('[EMAIL PROTECTED]')#
and this one actually uses the variables I set hehe
-Original Message-
From: RichL [mailto:[EMAIL PROTECTED]
Sent: Monday, October 30, 2006 8:39
('[EMAIL PROTECTED]')#
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Monday, October 30, 2006 10:19 AM
To: CF-Talk
Subject: Re: Need regular expression in REReplace for email
>>I work with a gentleman here, Adam Presley, who
wrote a pretty good ap
>>I work with a gentleman here, Adam Presley, who
wrote a pretty good app for constructing and testing
regular expressions.
I consider myself also as a gentleman, and I have such an application in
CF online here :
http://www.contentbox.com/claude/REwizard/index.cfm?p=h
--
_
l address and transform it
> with a regular expression
> in a REReplace so that everything after the @ and
> before the FINAL period
> is replaced by the same number of asterisks as there
> are characters being
> replaced. So for example:
>
> [EMAIL PROTECTED] => [EM
...
#email# (original)#newEmail# (stars)
On 10/30/06, Karl <[EMAIL PROTECTED]> wrote:
> I need to take any email address and transform it with a regular expression
> in a REReplace so that everything after the @ an
I need to take any email address and transform it with a regular expression
in a REReplace so that everything after the @ and before the FINAL period
is replaced by the same number of asterisks as there are characters being
replaced. So for example:
[EMAIL PROTECTED] => [EMAIL PROTEC
Pedro"
-Original Message-
From: Mike | NZSolutions Ltd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 30, 2005 10:59 PM
To: CF-Talk
Subject: REReplace
Hi there,
I wish to remove the img tags from an article for email purposes.
I have...
]+>)",
"", "all")>
Hi there,
I wish to remove the img tags from an article for email purposes.
I have...
]+>)",
"", "all")>
However, this doesn't seem to be working ??
mike
~|
Find out how CFTicket can increase your company's customer suppor
>>textfield = replace(textfield, 'Õ',''')
>>That errors as well
You cannot use the same character (single quote) as a string and its
delimiter in the same time.
Check wih the MySQL syntax for escaping single quotes.
Then you probabily need to use the preserveSingleQuotes() function in
the
OK, running the below directly in the database worked fine.
UPDATE `textfield` SET `Logline` = REPLACE(`textfield`,"Õ","'")
Can't get an equilivent Coldfusion query to work though. Ideas?
--
---
Les Mizzell
~|
Find
Barney Boisvert wrote:
> REreplace is a CF function, not a MySQL function, which is why you're
> getting the error. MySQL has a 'replace' function though. Something
> like this should work:
>
> UPDATE myDATE SET
> textfield = replace(textfield, "Õ&qu
REreplace is a CF function, not a MySQL function, which is why you're
getting the error. MySQL has a 'replace' function though. Something
like this should work:
UPDATE myDATE SET
textfield = replace(textfield, "Õ","'")
Rip out part of the table into
I've been handed a mySQL database with weird stuff in some text fields:
Õ instead of ' - for example
or things like ÒSet For LifeÓ for left and right quotes
I'd like to run a query and remove all these using rereplace, but a test
query like the below is returning an error
for doing it better?
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: 25 August 2005 18:15
To: CF-Talk
Subject: Re: Replace or REReplace function question.
First, I'd recommend not using CF markup for the fields. Or at least
don't require the CFOUTPUT t
>>Does anyone have any suggestions/ideas on the best way to replace my
tags with the required text?
Have a look at CF_REextract here:
http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm?p=hf
It will allow you to get in a query all occurrences of
tags and what's in between
First, I'd recommend not using CF markup for the fields. Or at least
don't require the CFOUTPUT tags, just the hashes. If you have a small
number of fields, loop over them and just do a replace(string,
"##detail.firstname##", detail.firstname, "all") for each one. Not
real elegant, but it is sim
]
Sent: 25 August 2005 14:37
To: CF-Talk
Subject: Replace or REReplace function question.
Hi all, I am trying to come up with a way to do the following;
User creates/edits a basic letter/mailshot document on line using FCKeditor.
Within this document the user can add some pre-defined CF output
Hi all, I am trying to come up with a way to do the following;
User creates/edits a basic letter/mailshot document on line using FCKeditor.
Within this document the user can add some pre-defined CF output fields i.e.
#details.firstname#.
This is with the idea of trying to do a simple mailshot b
thank you pascal...
although, im not sure if im even going to travel down the path i was
originally thinking on this one...
either way, THANKS!
--
tony
Tony Weeg
macromedia certified coldfusion mx developer
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/
co
If you want to delete cr/lf:
REReplace(str,"\r?\n","","all")
This is CFMX only (this should take care of cr/lf on windows AND lf on
*nix). I never used a Mac, but if I understood correctly, \n will take
care of cr on a Mac.
For CF5, use "#chr(13)#?#chr
thank you umer...
now, what does the \1 mean in the 3rd parameter?
thanks.
tony
On Mon, 13 Dec 2004 19:02:10 -0500, Umer Farooq <[EMAIL PROTECTED]> wrote:
> reReplace(string,'(#chr(10)##chr(13)#)|(#chr(10)#|#chr(13)#|#chr(32)#)','\1','all'
n Mon, 13 Dec 2004 19:02:10 -0500, Umer Farooq <[EMAIL PROTECTED]> wrote:
>
>>reReplace(string,'(#chr(10)##chr(13)#)|(#chr(10)#|#chr(13)#|#chr(32)#)','\1','all'
>>
>>Tony Weeg wrote:
>>
>>>so this reads:
>>>
>>>r
1 - 100 of 207 matches
Mail list logo