I have a regular expression issue.
I have information that says:
~{Test Information/a/li
That in a series of processing should look like ~{Test Information}~/a/li
Any idea in a rereplace how I can replace anything that is ~{*/a/li with
~{*}~/a/li
Thanks
Pat
-
Patrick Kerley
If you'd like you can use the underlying java implementation of replaceAll.
Cfset str = ~{Test Information2/a/li~{Test Information/a/li~{Test
Information4/a/li~{Test Information/a/li /
cfdump var=#str.replaceAll( ([a-zA-Z0-9])/a/li, $1}~/a/li )#
/
Should show: ~{Test Information2}~/a/li~{Test
This might be more of what you are looking for. It captures special
characters as well and should fit more in line to what you want.
Cfset str = ~{Test Infor$%mation2$/a/li~{Test
Information/a/li~{Test Information4/a/li~{Test Information/a/li
/
cfdump var=#str.replaceAll( (~\{.*?)/a/li,
Give this a go:
cfset Result = InputText.replaceAll
( '~\{(?:(?!/a).)+(?!\}~)(?=/a/li)'
, '$0}~'
) /
It uses the java replaceAll regex function so that it can do the negative
lookbehind to ensure existing correct items are not changed, meaning it can be
run
Sent: Tuesday, June 14, 2011 12:16 PM
Subject: Re: Regular Expression Help
Give this a go:
cfset Result = InputText.replaceAll
( '~\{(?:(?!/a).)+(?!\}~)(?=/a/li)'
, '$0}~'
) /
It uses the java replaceAll regex function so that it can do the negative
lookbehind
Please help, banging my head against a wall and my deadline is up...
I need to search a text filed of html formatted text to see if the user enter
in bad words
I have it all set to go but the regexp is giving me trouble.
I am looping over the list of badwords and checking the variable skills.
I think you want something like this:
cfif REFindnocase(([\s\]#badword#[\s\]),skills)
You may want to expand it to non-alphanumeric wrappers, though, to catch
punctuation: he gave her a kiss.
cfif REFindnocase(([\W]#badword#[\W]),skills)
which is the same as
cfif
Not sure what I am doing wrong but this is not working.
I have the string kissess are goodbrkissbrthe girlfriend
Kiss is a badword, and this regexp is not picking it up.
Please advise and thanks for your help.
Matt
I think you want something like this:
cfif
Hm, that should work, certainly. Did you try that 3rd option?
cfif REFindnocase(([^a-zA-Z0-9_]#badword#[^a-zA-Z0-9_]),skills)
That should find any use of the word 'kiss' when it's surrounded by any
non-alpha characters. Sadly I don't have access to my CF environment right at
the moment,
Forgot about Ryan Swanson's slick little tool. It certainly validates and
picks up the middle 'kiss' in his validator, using either '\W' or '^a-zA-Z0-9_'
as the filter:
http://ryanswanson.com/regexp/#start
~|
Adobe®
Figured out the issue, this works great.
Thank you, thank you, thank you
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
I just found an issue with this regexp
cfif REFindnocase(([^a-zA-Z0-9_]#badword#[^a-zA-Z0-9_]),clean_skills)
this works great if it is not the first word or only word in the string.
what do I need to do to update the regexp to pick up the bad word it is the
first last or only word in the
Typo: cfif REFindnocase(((^|\W)#badword#(\W|$)),clean_skills)
On Fri, Oct 31, 2008 at 1:09 PM, Sonny Savage [EMAIL PROTECTED] wrote:
cfif REFindnocase(((^|\W)#badword#(\W|$),clean_skills)
On Fri, Oct 31, 2008 at 1:04 PM, Matthew Friedman [EMAIL PROTECTED]wrote:
I just found an issue with
Good call. Try this, seems to work in initial testing:
cfif REFindnocase(((^|[^a-zA-Z0-9_])#badword#([^a-zA-Z0-9_]|$)),
clean_skills)
I just found an issue with this regexp
cfif REFindnocase(([^a-zA-Z0-9_]#badword#[^a-zA-Z0-9_]),
clean_skills)
this works great if it is not the first
cfif REFindnocase(((^|\W)#badword#(\W|$),clean_skills)
On Fri, Oct 31, 2008 at 1:04 PM, Matthew Friedman [EMAIL PROTECTED] wrote:
I just found an issue with this regexp
cfif REFindnocase(([^a-zA-Z0-9_]#badword#[^a-zA-Z0-9_]),clean_skills)
this works great if it is not the first word or
I am working on a variable mask version as I have time. This one will
atleast mask the domain for now.
Eric
On 2/20/07, Eric Haskins [EMAIL PROTECTED] wrote:
cfset email = ReReplaceNocase(email,
([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3}),
[EMAIL PROTECTED])/
Try
cfset variables.domainlen = Len(ReReplaceNocase(attributes.email,
([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3}),
\2)) - 1
cfset variables.mask =
cfloop from=1 to=#variables.domainlen# index=i
cfset variables.mask = variables.mask *
/cfloop
cfset variables.email =
I would like to use a regular expression to camouflage email addresses in a
forum I'm building. I'd like to replace just the domain name (not the .com or
.net or other extension though) with x's:
FROM THIS: [EMAIL PROTECTED]
TO THIS:[EMAIL PROTECTED]
Where the number of x's exactly
I would like to use a regular expression to camouflage email addresses in a
forum I'm building. I'd like to replace just the domain name (not the .com or
.net or other extension though) with x's:
FROM THIS: [EMAIL PROTECTED]
TO THIS:[EMAIL PROTECTED]
Where the number of x's exactly
cfset email = ReReplaceNocase(email,
([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3}),
[EMAIL PROTECTED])/
Try this one
Eric
On 2/20/07, K Simanonok [EMAIL PROTECTED] wrote:
I would like to use a regular expression to camouflage email addresses in
a forum I'm building.
I would like to use a regular expression to camouflage email addresses in a
forum I'm building. I'd like to replace just the domain name (not the .com or
.net or other extension though) with x's:
FROM THIS: [EMAIL PROTECTED]
TO THIS:[EMAIL PROTECTED]
Where the number of x's exactly
Offhand, I think your best bet is to use a regex to identify everything
from the @ to the TLD, then use the len returned by refind to do a
replace of it. There are a number of really good regexes for
finding/dissecting emails out there. CFLib.org is a good place to start.
--Ben Doom
K
How would you do numbers under one hundred with a limit of 7 decimals?
Lee Surma
Applications Systems Engineer
Wells Fargo Corporate Trust
[EMAIL PROTECTED]
612-667-4066
~|
Upgrade to Adobe ColdFusion MX7
Experience
Need ColdFusion Help?
www.bennadel.com/ask-ben/
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, January 29, 2007 10:06 AM
To: CF-Talk
Subject: Regular Expression Help
How would you do numbers under one hundred with a limit of 7 decimals?
Lee Surma
Ben Nadel wrote:
Not really sure what exactly you are looking to do, but the regular
expression pattern for numbers under 100 with 7 decimals would be:
\d{2}(\.\d{1,7})?
I'd anchor it, assuming that this is supposed to be the whole string:
^\d{2}(\.\d{1,7})?$
--Ben Doom
: Regular Expression Help
Ben Nadel wrote:
Not really sure what exactly you are looking to do, but the regular
expression pattern for numbers under 100 with 7 decimals would be:
\d{2}(\.\d{1,7})?
I'd anchor it, assuming that this is supposed to be the whole string:
^\d{2}(\.\d{1,7})?$
--Ben
That would not match 0 through 9.999 unless they were formatted into 2
digit numbers like 00, 01, etc... 09.999 It also wouldnt match anything
between 1 and 0 like .999 unless it was formatted like 00.999
Try this one: ^\d{0,2}(\.\d{1,7})?$
I dont know what you are using it for
Expression Help
Hi,
RegExp's are not my forte and I need to create a function that will
extract URL's from a body of text and return it in a list.
I have a function that extracts the anchor tags from a document, but I
need to acurately extract the URL from that anchor tag. I can do a find
:31 PM
To: CF-Talk
Subject: Re: Regular Expression Help
Dave how did it turn out??
~Eric
~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 MX7 integration create powerful cross-platform RIAs
http:http
Hi,
RegExp's are not my forte and I need to create a function that will extract
URL's from a body of text and return it in a list.
I have a function that extracts the anchor tags from a document, but I need to
acurately extract the URL from that anchor tag. I can do a find for 'href' and
so
This page might get you pointed in the right direction.
http://foad.org/~abigail/Perl/url2.html
-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 8:36 AM
To: CF-Talk
Subject: Regular Expression Help
Hi,
RegExp's are not my forte
This one might be better:
http://www.manamplified.org/archives/000318.html
-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 9:50 AM
To: CF-Talk
Subject: RE: Regular Expression Help
This page might get you pointed in the right
Thanks, I'm working on something with that now, but does anyone know if there
is a function or tag out there someone has already written that does this? It
seems that I should not be the first person who needs to feed a function a body
of text and get back a list of the URL's in that text.
I think I have a solution, but if a few of you could review and see if it can
be any faster or more efficient (or if I'm missing something) I'd appreciate
it. To find the end of the URL I'm looking for a single quote, double quote or
space.
function extractURLs(inputString) {
var
?
www.bennadel.com/ask-ben/
-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 9:55 AM
To: CF-Talk
Subject: Re: Regular Expression Help
Thanks, I'm working on something with that now, but does anyone know if
there is a function or tag out there someone
, 2007 10:25 AM
To: CF-Talk
Subject: Re: Regular Expression Help (Solution?)
I think I have a solution, but if a few of you could review and see if
it can be any faster or more efficient (or if I'm missing something) I'd
appreciate it. To find the end of the URL I'm looking for a single
quote
Hi,
The RegExp below is giving me more than I want. It is returning things that I
don't want:
mailto:
urn:schemas-microsoft-com:office:office
and others. I want to chnage it to only return url's starting with http: or
https:. Here's what I currently have:
When I test it tells me not enough (
I am troubleshooting it now out sick today but list draws me back
everytime lol
Eric
On 1/23/07, Dave Phillips [EMAIL PROTECTED] wrote:
Hi,
The RegExp below is giving me more than I want. It is returning things
that I don't want:
mailto:
Try this one
https?:)\/\/)|(www\.|ftp\.))[-[:alnum:]\?%,\.\/##!@:=\+~_]+[A-Za-z0-9\/
])
-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 2:03 PM
To: CF-Talk
Subject: Re: Regular Expression Help
Hi,
The RegExp below is giving me
(?:href=|href=|href=')((?:http|https)://(.+))(?:|'|)
Does this help at all??? This will find all http or https links??
Eric
On 1/23/07, Eric Haskins [EMAIL PROTECTED] wrote:
When I test it tells me not enough (
I am troubleshooting it now out sick today but list draws me back
, January 23, 2007 2:03 PM
To: CF-Talk
Subject: Re: Regular Expression Help
Hi,
The RegExp below is giving me more than I want. It is returning things that
I don't want:
mailto:
urn:schemas-microsoft-com:office:office
and others. I want to chnage it to only return url's starting with http
Dave how did it turn out??
~Eric
~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 MX7 integration create powerful cross-platform RIAs
Hello Everybody,
I'm having problems writing a regular expression. I'm trying to pass a string
to flash and want to strip off and replace the html tags with a br tag but
also leave any b, span, i, strong, div, br, and p tags.
This is what I've done so far:
cfscript
function StripHTML(str) {
Hi, I have an url such as
http://www.blah.com/something/somethingelse/default.cfm stored in a
database. I wish to use this information as links to others site which
have similar reviews. I would like to parse down the full url to on
the domain i.e. http://www.blah.com http://www.blah.com/ - for
-Original Message-
From: John Munyan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 10, 2005 3:03 AM
To: CF-Talk
Subject: Regular expression help
Hi, I have an url such as
http://www.blah.com/something/somethingelse/default.cfm stored in a
database. I wish to use
Guys,
I have the following email check but it won't accept a .info email
address. I'm not a regular expression expert and was hoping someone
could help me out with this. How could I update the following script to
accept domain suffixes other than .com, .net .org?
function isEmail(str) {
I found the fix guys!!! Amazing what a little Googling will do. :P
Rey...
Rey Bango wrote:
Guys,
I have the following email check but it won't accept a .info email
address. I'm not a regular expression expert and was hoping someone
could help me out with this. How could I update the
I'm searching a long string and looking for the value
input type=hidden name=BV_SessionID value=any value here
what kind of syntax would I use to grab the value of the above tag.
~|
Special thanks to the CF Community Suite Gold
REReplaceNoCase(text,'^.*input type=hidden name=BV_SessionID
value=([^]*).*$',\1)
Pascal
-Original Message-
From: Daniel Farmer [mailto:[EMAIL PROTECTED]
Sent: 05 November 2004 10:24
To: CF-Talk
Subject: Regular Expression Help
I'm searching a long string and looking
Thanks Pascal... but I am having problems implementing
cfset theval = #REFind('^.*input type=hidden name=BV_SessionID
value=([^]*).*$',\1,)#, cfhttp.filecontent, startpos )#
~|
Special thanks to the CF Community Suite Gold
-
From: Pascal Peters [mailto:[EMAIL PROTECTED]
Sent: 05 November 2004 10:43
To: CF-Talk
Subject: RE: Regular Expression Help
REReplaceNoCase(text,'^.*input type=hidden name=BV_SessionID
value=([^]*).*$',\1)
Pascal
-Original Message-
From: Daniel Farmer [mailto:[EMAIL PROTECTED
cfset theval = REReplaceNoCase(cfhttp.filecontent,'^.*input
type=hidden name=BV_SessionID value=([^]*).*$',\1)
Pascal
-Original Message-
From: Daniel Farmer [mailto:[EMAIL PROTECTED]
Sent: 05 November 2004 11:10
To: CF-Talk
Subject: Re: Regular Expression Help
Thanks Pascal
November 2004 12:11
To: CF-Talk
Subject: RE: Regular Expression Help
Pascal,
Would it be possible for you to explain a bit more about what each
part
of
the RegEx is doing? I'm trying to do something similar and I'm having
no
end
of trouble getting the RegEx right. MM documentation
Ok,
This one is killing me.. And my CFMX server...
Currently I'm using the following code to parse some text:
cfset teststr = definition
cfset st = ReFindNoCase({[^}]*}, teststr,
1, true)
cfloop condition=st.pos[1] GT 0
cfset replaceme = mid(teststr,
st.pos[1], st.len[1])
If this is the actual code you are using, you are creating an infinite
loop because you always start looking at the start position 1 in your
REFind. It will keep matching the first {}.
It really depends what you are trying to grab. If you are trying to get
only the inner parentheses it is not too
Sorry for the original and long post... I fixed it...
The regular _expression_ changed to {[^{^}]*} and I changed the startpos for
the next REFindNoCase so it skipped the nesting issues...
cfset st = ReFindNoCase({[^{^}]*},
teststr, 1, true)
cfloop condition=st.pos[1] GT 0
cfset
This is not exactly what you are trying to say:
[^{^}] == anything but { or } or ^
Correct: [^{}]
Pascal
PS Give the REReplace with the backreferencing (see my previous post) a
shot. It is only 1 line to do the same thing.
-Original Message-
From: Paul Vernon [mailto:[EMAIL
PS Give the REReplace with the backreferencing (see my previous post) a
shot. It is only 1 line to do the same thing.
Pascal, you are a STAR!
The backreferencing wasn't quite there as I wanted to remove all of the
extra parentheses also but a simple replacelist wrapped around your elegant
Don't do the replace, just don't include the {} in the REreplace.
Although I may have overlooked something: You really should do a
URLEncodedFormat() of the word (which doesn't work with the
backreferencing).
function MakeLinks(text,dictionary){
var st = StructNew();
var start = 1;
var word =
On CFMX
stTmp = REFindNoCase('msg:(.*?);',str,1,true);
if(stTmp.pos[1]){
message = Mid(str,stTmp.pos[2],stTmp.len[2]);
}
else {
message = ;
}
ON CF5
stTmp = REFindNoCase('msg:(([^]|[^;])*);',str,1,true);
if(stTmp.pos[1]){
message = Mid(str,stTmp.pos[2],stTmp.len[2]);
}
else {
message = ;
}
I'm trying to parse a string and pluck a bit of text, but my regex
isn't working :( Here's a sample string:
(msg:My Message Here; content:My Content Here;)
I want to return My Message Here.
And here's my regex:
refindnocase(msg:[[:print:]]+;, mystring)
I'm using print as mystring may contain
This should work.
cfset test = (msg:My Message Here; content:My Content Here;)
cfset temp = refindnocase(msg:([^;]*),test,1,yes)
cfloop from=1 to=#arraylen(temp.pos)# index=i
cfoutput#mid(test,temp.pos[i],temp.len[i])#br/cfoutput
/cfloop
--
Marlon Moyer, Sr. Internet Developer
American
cfscript
regexp = ##[[:space:]]*([0-9]{2-3});
stTmp = REFindNoCase(regexp,str,1,true);
if(stTmp.pos[1])
result = Mid(str,stTmp.pos[2],stTmp.len[2]);
else
result = ;
/cfscript
If you need to find all, you do it in a loop:
cfscript
regexp = ##[[:space:]]*([0-9]{2-3});
results = ArrayNew(1);
What regular _expression_ would find a # followed by any number of blanks,
followed by 2-3 numbers
For example, I want to return 45 from this string:
Testing this string # 45 to 46
Andy
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
How about this?
cfset result = reFind(##[[:space:]]*([[:digit:]]+), myString, 1, true)
cfif result.pos[1]
cfoutput#mid(myString, result.pos[2],
result.len[2])#/cfoutput
/cfif
-Original Message-
From: Andy Ousterhout [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 February 2004 11:05 a.m.
Got a cfinput, it's required, and the validation is a regular _expression_.
The Problem: The regular _expression_ isn't allowing a capital letter after
the '@'. I'm sure there are other faults with this regular _expression_, but
you see...I'm just not there yet when it comes to troubleshooting
Here's a nice little _expression_ I use.
var chkEmail=
/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{
2})?)$/i;
if ((form.Email.value.length 6 ) || (chkEmail.test(form.Email.value) ==
false)) {
var msg= Email address entry error!\n\nPlease a valid email
This regex was intended to be used with a case-insensitive regular
_expression_ checker.To make it case insensitive, there are two things
you'll have to do.
replace a-z in brackets with a-zA-Z
replace each of aero, coop, info, museum, and name with EVERYPOSSIBLE
CAPITALIZATION POSSIBILITY.
On Monday 13 Oct 2003 17:01 pm, Ben Doom wrote:
replace each of aero, coop, info, museum, and name with EVERYPOSSIBLE
CAPITALIZATION POSSIBILITY.
Or alternatively, don't bother checking the TLD against a static list, because
eventualy a new one will crop up, and you'll wind people up who have
I use:
^[a-zA-Z]([.]?([[:alnum:]_-]+[.]?)*[[:alnum:]_-])?@([[:alnum:]\-_]+\.)+[a-zA-Z]{2,4}$
which, admittedly, won't allow .museum addresses, but will match most
common emails.
--Ben Doom
Thomas Chiverton wrote:
On Monday 13 Oct 2003 17:01 pm, Ben Doom wrote:
replace each of aero, coop,
Ok I suck at reg expressions.Basically I have some data and within the data there is some stuff I want to remove.Example text text a href="" href="http://www.blah.comblah">http://www.blah.comblah blah blah blah/a text text Ok basically I want to remove everything from a href through /a although
What version of CF?--Ben the RegEx Ninja Doomkelly wrote:Ok I suck at reg expressions.Basically I have some data and within the data there is some stuff I want to remove.Example text text a href="" href="http://www.blah.comblah">http://www.blah.comblah http://www.blah.comblah blah blah blah/a
Ok basically I want to remove everything from a href through /a althoughit will be different on every line.This is tipically the situation why I developed CF_REextract (seehttp://www.contentbox.com/claude/customtags/tagstore.cfm?p=hf(see specs and examples)The tag will find all occurences, and
I tried to post this yesterday from the archives and I screwed it up.
So.. reposting.
I am dealing with a site that has been ripped apart by search and
replace
in Homesite+. Tags that used to look like:
td
select name=sel_costarts size=20
class=formSelectColumnsLarge
td
-
: From: Patricia G. L. Hall [mailto:[EMAIL PROTECTED]
: Sent: Friday, August 08, 2003 8:41 AM
: To: CF-Talk
: Subject: Repost: Regular Expression Help
:
:
: I tried to post this yesterday from the archives and I screwed it up.
: So.. reposting.
:
: I am dealing with a site that has been
Moonbow Software, Inc
: -Original Message-
: From: Patricia G. L. Hall [mailto:[EMAIL PROTECTED]
: Sent: Friday, August 08, 2003 8:41 AM
: To: CF-Talk
: Subject: Repost: Regular Expression Help
:
:
: I tried to post this yesterday from the archives and I screwed it up.
: So.. reposting.
:
: I am
I am trying to use a regular expression to change all possible special
characters in a string to underscores because I am trying to use the
string as a variable name.
Regular expressions are not my specialty and I am running into problems
using some characters in my reReplace function.
Could
]
*
-Original Message-
From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 12:31 PM
To: CF-Talk
Subject: Regular Expression Help
I am trying to use a regular expression to change all possible special
characters in a string to underscores
]
*
-Original Message-
From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 12:31 PM
To: CF-Talk
Subject: Regular Expression Help
I am trying to use a regular expression to change all possible special
characters
Something like
CFSET sNewString = REReplace(sOldString, [[:punct:][:space:]], ,
ALL)
HTH
-Original Message-
From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 6, 2002 17:31
To: CF-Talk
Subject: Regular Expression Help
I am trying to use a regular expression
, December 06, 2002 11:31 AM
To: CF-Talk
Subject: Regular Expression Help
I am trying to use a regular expression to change all
possible special characters in a string to underscores
because I am trying to use the string as a variable name.
Regular expressions are not my specialty and I am
That was what I was looking for, I just had not found it yet.
Thanks
-Original Message-
From: Joshua Miller [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 11:42 AM
To: CF-Talk
Subject: RE: Regular Expression Help
ReReplaceNoCase(string,[[:punct:]],_,ALL)
Joshua Miller
: Friday, December 06, 2002 11:43 AM
To: CF-Talk
Subject: RE: Regular Expression Help
Oh, forgot the space use [[:punct:]]||[[:space:]] as the RegEX
Joshua Miller
Head Programmer / IT Manager
Garrison Enterprises Inc.
www.garrisonenterprises.net [EMAIL PROTECTED]
(704) 569-9044 ext
How do you not replace a non-existent space before and after the string?
Everything else works great.
Thanks
-Original Message-
From: Joshua Miller [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 11:43 AM
To: CF-Talk
Subject: RE: Regular Expression Help
Oh, forgot the space
I think you accidentally doubled the pipes between the punct and space. It
should be:
[[:punct:]]|[[:space:]]
Thanks,
Doug
-Original Message-
From: Joshua Miller [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 11:43 AM
To: CF-Talk
Subject: RE: Regular Expression Help
Oh
]]
Sent: Friday, December 06, 2002 11:43 AM
To: CF-Talk
Subject: RE: Regular Expression Help
Oh, forgot the space use [[:punct:]]||[[:space:]] as the RegEX
Joshua Miller
Head Programmer / IT Manager
Garrison Enterprises Inc.
www.garrisonenterprises.net [EMAIL PROTECTED]
(704) 569-9044
My ally is the Force, and a powerful ally it is. - Yoda
-Original Message-
From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 11:53 AM
To: CF-Talk
Subject: RE: Regular Expression Help
How do you not replace a non-existent space before and after
]
*
-Original Message-
From: Rob Rohan [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 12:54 PM
To: CF-Talk
Subject: RE: Regular Expression Help
lastly, you could think backwards [^A-Za-z0-9]
Rob
http
' returns '_some_phrase_' instead
of 'some_phrase' which is what I was looking for.
Thanks
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 11:54 AM
To: CF-Talk
Subject: RE: Regular Expression Help
What is a non-existent space? How could
Yep, this is probably the safest bet and produces the expected result.
Thanks
-Original Message-
From: Rob Rohan [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 11:54 AM
To: CF-Talk
Subject: RE: Regular Expression Help
lastly, you could think backwards [^A-Za-z0-9]
Rob
and
advise us by return e-mail to [EMAIL PROTECTED]
*
-Original Message-
From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 1:03 PM
To: CF-Talk
Subject: RE: Regular Expression Help
, the first method works just fine and is probably safer.
-Original Message-
From: Joshua Miller [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 12:30 PM
To: CF-Talk
Subject: RE: Regular Expression Help
Did you TRIM the variable first? That may help ... Perhaps there's
whitespace
]
:
: *
:
:
: -Original Message-
: From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]]
: Sent: Friday, December 06, 2002 12:31 PM
: To: CF-Talk
: Subject: Regular Expression Help
:
:
: I am trying to use a regular
Hello,
I've got a form field in which I want to allow people to enter HTML tags
(formatted stories for the web), but only a limited set of them such as
heading, bold, and italic tags so that they don't mess up the overall
formatting of the page.
What I'd like to do is automatically strip out
.
For what that's worth...
Mike
-Original Message-
From: Mark Warrick [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 3:50 PM
To: CF-Talk
Subject: regular expression help
Hello,
I've got a form field in which I want to allow people to enter HTML tags
(formatted stories
If you have a limited range of accepted tags then the following will probably be your
best bet.
1. find all of the tags you want to allow.
2. replace their brackets with some non-standard character (like a yen symbol).
3. remove all other tags that exist.
4. replace your yen with brackets
-Talk
Subject: Re: Regular Expression Help
On Sat, 2002-03-02 at 10:10, Jared Stark wrote:
Hello all. I am trying to write a simple search engine, and would
like
to replace certain commonly used prepositions from the search string
such as 'a','the','for', etc...
I have an array
On Sat, 2002-03-02 at 10:10, Jared Stark wrote:
Hello all I am trying to write a simple search engine, and would like
to replace certain commonly used prepositions from the search string
such as 'a','the','for', etc
I have an array of the prepositions that I would like to remove, however
Sleeman [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, March 02, 2002 4:28 AM
Subject: Re: Regular Expression Help
On Sat, 2002-03-02 at 10:10, Jared Stark wrote:
Hello all. I am trying to write a simple search engine, and would
like
to replace certain commonly used prepositions
Hello all I am trying to write a simple search engine, and would like
to replace certain commonly used prepositions from the search string
such as 'a','the','for', etc
I have an array of the prepositions that I would like to remove, however
the problem I have is that it is removing them when
1 - 100 of 158 matches
Mail list logo