On mx:
regexp = "<(?!/?(input|textarea|select|option)\b).*?>";
newtxt = REReplaceNoCase(txt,regexp,"","all");
> -Original Message-
> From: jean-marc bottin [mailto:[EMAIL PROTECTED]
> Sent: donderdag 3 juni 2004 16:06
> To: CF-Talk
> Subject: Re: Regular _expression_ and HTML
>
> It wor
It works, thank you.
Jean-Marc
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
It works, thank you very much.
Jean-Marc
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Add [^>]*> at the end of the regexp. If you are on mx, you can write a
shorter regexp!!
> -Original Message-
> From: jean-marc bottin [mailto:[EMAIL PROTECTED]
> Sent: donderdag 3 juni 2004 15:45
> To: CF-Talk
> Subject: Regular _expression_ and HTML
>
> I got a RE that I have modified
I got a RE that I have modified in order to parse some HTML and to only keep tag starting with a
I have some HTML:
a
b
c
d
After using the RE I get that:
cellSpacing=0 cellPadding=0 width="100%" borde
Thanks,
I figured it out.
Thanh.
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 7:38 PM
To: CF-Talk
Subject: RE: Help with Regular _expression_
Why not simply use replaceList().
Str = replaceList(str, ".,1st,2nd,3rd,4th,5th,6th,7th,8
Why not simply use replaceList().
Str = replaceList(str, ".,1st,2nd,3rd,4th,5th,6th,7th,8th,9th,10th,&", "
,first,second,third,fourth,fifth,sixth,seventh,eighth,ninth,tenth, and ")
then str = reReplaceNoCase(str, "^The[[:space:]]", "")
then str = reReplace(str, "[^[:alnum:][:space:]]", "", "all"
Hi All,
I tried to do this regular _expression_, but having a hard time getting the
result I want. So any help would be appreciated.
Here's what I tried to achieve.
1. remove "The" from in at the beginning of the string.
2. replace period with space.
3. Numerals are treated as though spell
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 {
messag
This should work.
#mid(test,temp.pos[i],temp.len[i])#
--
Marlon Moyer, Sr. Internet Developer
American Contractors Insurance Group
phone: 972.687.9445
fax: 972.687.0607
mailto:[EMAIL PROTECTED]
www.acig.com
> -Original Message-
> From: Ian [mailto:[EMAIL PROTECTED]
> Sent: Monday
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 con
Hi,
I am copying the text from MS Word to a coldfusion page. The text
in MS Word is in a table of many cells. I am trying to re-recreate
the table in ColdFusion using regular _expression_. #chr(10)# detects
the end of a row. #chr(9)# detects the end of a cell. What
characters would detect the line
Try treating the text a list with a cr/lf delimeter, and then tret each list
item as another list with a delimeter of "=",
OtherSrvLev=0w33a
Category=31
">
setvariable( listgetat(i,1,"=") , listgetat(i,2,"=") );
--
In this case, you now ha
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 = "";
If you need to find all, you do it in a loop:
regexp = "##[[:space:]]*([0-9]{2-3})";
results = ArrayNew(1);
start = 1;
while(true){
How about this?
#mid(myString, result.pos[2],
result.len[2])#
-Original Message-
From: Andy Ousterhout [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 February 2004 11:05 a.m.
To: CF-Talk
Subject: Regular _expression_ help
What regular _expression_ would find a "#" followe
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]
You need to 'remember' the character grabbed by the dot in a backreference:
rereplace(string, "(.)/(.)", "\1 / \2", "all");
That should take care of you. If you have any more questions, we might
want to move to CF-Regex (available via the HoF archives if you don't
want to subscribe).
--Ben Do
You need to grab the S from DOGS and the C from Cats that you are replacing.
For example:
the () around the dots grabs those values.
The \1 and \2 put them back in.
Does that make sense?
Jerry Johnson
>>> [EMAIL PROTECTED] 01/09/04 02:05PM >>>
Hi all,
Here is a quick one for you.
I hav
Hi all,
Here is a quick one for you.
I have a Variable that I am trying to do a rereplace on and it isn't working
as I expected.
Here is the code:
"All")>
I was hoping that it would convert: DOGS/CATS
TO: DOGS / CATS
but it returns: DOG. / .ATS
I also tried it with the replacement s
Kevin Marino wrote:
> From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
>>>"Information","scheduler-0","12/29/03","15:41:19",,"Mail: 'Report Examines
>>>U.S. Long-Term Care Spending' From:'John Noone <[EMAIL PROTECTED]>'
>>>To:'[EMAIL PROTECTED]' was successfully sent using 192.168.5.186"
>>>"Inf
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 03, 2004 2:42 PM
To: CF-Talk
Subject: Re: OT: Regular _expression_
Kevin Marino wrote:
>
> "Information","scheduler-0","12/29/03","15:41:19",,"Mail: 'Report Examines
> U.S. Long-Term Care Spendin
Kevin Marino wrote:
>
> "Information","scheduler-0","12/29/03","15:41:19",,"Mail: 'Report Examines
> U.S. Long-Term Care Spending' From:'John Noone <[EMAIL PROTECTED]>'
> To:'[EMAIL PROTECTED]' was successfully sent using 192.168.5.186"
> "Information","mailWorker-3","12/29/03","15:56:34",,"Mail:
I have built a regEx parse the following lines, these are from the CF
mailsent.log
"Information","scheduler-0","12/29/03","15:41:19",,"Mail: 'Report Examines
U.S. Long-Term Care Spending' From:'John Noone <[EMAIL PROTECTED]>'
To:'[EMAIL PROTECTED]' was successfully sent using 192.168.5.186"
"Infor
Indeed, thank you Dave!
Peter Tilbrook
Transitional Services - Enterprise eSolutions
Centrelink (http://www.centrelink.gov.au)
2 Faulding Street
Symonston ACT 2609
Tel: (02) 62115927
> Can anyone remember where I can grab that cool Java-based RegEx editor?
>
This what you're looking for?
http://www.cfregex.com/
Regards,
Dave.
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Can anyone remember where I can grab that cool Java-based RegEx editor?
TIA!
Peter Tilbrook
Transitional Services - Enterprise eSolutions
Centrelink (http://www.centrelink.gov.au)
2 Faulding Street
Symonston ACT 2609
Tel: (02) 62115927
Important: This e-mail is intended for the use of the ad
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,
On Monday 13 Oct 2003 17:01 pm, Ben Doom wrote:
> replace each of aero, coop, info, museum, and name with EVERY POSSIBLE
> 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 ha
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 EVERY POSSIBLE
CAPITALIZATION POSSIBILITY.
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
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 t
I don't think the number is a hard constant, so be careful.
I usually break my string into roughly 10K chunks (broken on nearest LF)
Jerry Johnson
>>> [EMAIL PROTECTED] 10/10/03 02:35PM >>>
I think I've figured it out and Jerry is pretty much right on...
When the string I'm searching through ha
That would be my guess. Run it on a small string. If it works, that's
your problem. If it still returns "bad regular _expression_" we'll take a
closer look.
--Ben "Number One Ninja" Doom
Jerry Johnson wrote:
> My bet would be that your string X is too long.
>
> CF 5 has a known limitation
I think I've figured it out and Jerry is pretty much right on...
When the string I'm searching through has 20485, the regex works. When the
string has 20486, I get the "bad regular _expression_" message.
Thanks,
Jon
-Original Message-
From: Jerry Johnson [mailto:[EMAIL PROTECTED]
Sent: Fr
My bet would be that your string X is too long.
CF 5 has a known limitation of something like 22,000 bytes. Longer strings throw this error.
I think.
Any ninjas around to correct me?
Jerry Johnson
>>> [EMAIL PROTECTED] 10/10/03 01:39PM >>>
I'm trying to write an _expression_ that will remove a
Try escaping your dashes, the RegEx engine sometimes gets confused, like I
know [a-z-A-Z] will freak it out, you have to put those dashes at the end.
In fact, for a test, take the dashes out completely to see if that may be
the problem, then try different ways of putting them back in, like [-]{2} o
I'm trying to write an _expression_ that will remove any SHTML include tags. I
am getting a "bad regular _expression_" error from cf5. What is wrong?
Thanks,
Jon
_expression_:
"", "", "ALL")>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
That is embarssing!!!Guess I assumed that it could not be that EZ and that you needed to usea Regular _expression_.Oh well, that was my one way too simple question for the year. Too bad Iam way over my limit on those. :-) Must be late Friday.Thanks!Mark W. Breneman-Cold Fusion Developer-Network Ad
In CF Studio, you can use Extended Find and Replace and put your carriage return in the top, and your comma in the bottom and it should work.- Calvin - Original Message - From: Mark W. Breneman To: CF-Talk Sent: Friday, September 26, 2003 4:25 PM Subject: Regular _expression_ find e
Hi Mark, No need for a regex unless I completely misread your question. In CFS, go to Search-->Extended Replace in the 'Find What' field, literally hit the enter key pop a comma in the 'replace with' field let 'er rip. umm... make sure "current document" is selected :) -Original Message-Fr
Ok, I finally broke down and I have to ask this question.How do you do a simple find end of line / carriage return and replacewith a "," in CF studio?I have tried to look this up several times and found myself using ultraedit just to get it done, a few mins later. Thanks.Mark W. Breneman-Cold Fusio
>>Ok basically I want to remove everything from 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 return then in a qu
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 blah">http://www.blah.com">blah ">http://www.blah.com">blah> > blah blah blah text text> >
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 blah">http://www.blah.com">blah blah blah blah text text Ok basically I want to remove everything from although it will be different on every line. So I need cod
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:
stripped off of the and now look like this:
]*<
Can anyone help me
> index.cfm?method=threads&forumid=21
>
> HTH.
>
>
> -- Ben Doom
> Programmer & General Lackey
> Moonbow Software, Inc
>
> : -Original Message-
> : From: Patricia G. L. Hall [mailto:[EMAIL PROTECTED]
> : Sent: Friday, August 08, 2003 8:41 A
l 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 dealing with a site that has
to write the regular expression to find 2 out of three
> words in a row? I need to determine is a string has "and or" or "not and"
> etc in the string.
>
> Thanks
>
~|
Archives: http://www.houseoffusi
does anyone know how to write the regular expression to find 2 out of three
words in a row? I need to determine is a string has "and or" or "not and"
etc in the string.
Thanks
~|
Archives: http://www.houseo
C++ via the Trolltechs QT framework.
WG
-Original Message-
From: fred fred [mailto:[EMAIL PROTECTED]
Sent: 24 July 2003 03:05
To: CF-Talk
Subject: Re: Visual Regular Expression tool
what language is this written in? It looks like a GUI version of text2reg.
http
on:
http://www.coolfusion.com/imssecomparison.cfm
>
> - Original Message -
> From: "Michael Dinowitz"
> To: "CF-Talk"
> Sent: Tuesday, July 15, 2003 6:26 PM
> Subject: Visual Regular Expression tool
>
>
> > Download it now:
> > http://www.cfr
FYI - runs great on XP Pro. Thanks!
- Jim
Michael Dinowitz wrote:
>No clue. here's the direct link:
>http://www.cfregex.com/visualregex/kregexpeditor.zip
>There's no security on the directory and nothing that can stop it from being
>downloaded.
>If it was on the HoF server then I can understand
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: 16 July 2003 11:26
To: CF-Talk
Subject: Re: XP issue was RE: Visual Regular Expression tool
It looks like it was a security problem on the original zip file. I've
uploaded a new one. Please try it out and see
; Do you XP users that are having problems got
>>
>> MSVCRT.DLL on your machines?
>>
>> WG
>>
>> -Original Message-
>> From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
>> Sent: 16 July 2003 03:33
>> To: CF-Talk
>> Subject: Re: Vis
rom: Michael Dinowitz [mailto:[EMAIL PROTECTED]
> Sent: 16 July 2003 03:33
> To: CF-Talk
> Subject: Re: Visual Regular Expression tool
>
>
> No clue. here's the direct link:
> http://www.cfregex.com/visualregex/kregexpeditor.zip
> There's no security on the directory an
Do you XP users that are having problems got
MSVCRT.DLL on your machines?
WG
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: 16 July 2003 03:33
To: CF-Talk
Subject: Re: Visual Regular Expression tool
No clue. here's the direct link:
http://www.cfrege
:)
> You should include license info in the ZIP.
>
> Thanks,
>
> Howie
>
> - Original Message -
> From: "Michael Dinowitz" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, July 15, 2003 11:17 PM
> Su
You should include license info in the ZIP.
Thanks,
Howie
- Original Message -
From: "Michael Dinowitz" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, July 15, 2003 11:17 PM
Subject: Re: Visual Regular Expression tool
> G
tp://www.sys-con.com/coldfusion/readerschoice2003/index.cfm <<<<
> >>> Find out how iMS Stacks up to the competition:
http://www.coolfusion.com/imssecomparison.cfm
>
> - Original Message -
> From: "Michael Dinowitz" <[EMAIL PROTECTED]>
> To:
l Dinowitz" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, July 15, 2003 6:26 PM
Subject: Visual Regular Expression tool
> Download it now:
> http://www.cfregex.com
>
~~~
oi Michael!!
oh sorry, I meant I get that when I try to run the exe on my copy of XP.
ctz
Tuesday, July 15, 2003, 10:33:04 PM, you wrote:
MD> No clue. here's the direct link:
MD> http://www.cfregex.com/visualregex/kregexpeditor.zip
MD> There's no security
:[EMAIL PROTECTED]
> >Sent: Tuesday, July 15, 2003 7:33 PM
> >To: CF-Talk
> >Subject: Re: Visual Regular Expression tool
> >
> >No clue. here's the direct link:
> >http://www.cfregex.com/visualregex/kregexpeditor.zip
> >There's no security on the
I think he's talking about when he runs the executable. I'm receiving the
same error on Windows XP Pro.
chris
>-Original Message-
>From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, July 15, 2003 7:33 PM
>To: CF-Talk
>Subject: Re: Visual Regular E
No clue. here's the direct link:
http://www.cfregex.com/visualregex/kregexpeditor.zip
There's no security on the directory and nothing that can stop it from being
downloaded.
If it was on the HoF server then I can understand there being a problem.
Since I put in some of the google stuff we've been
oi Michael!!
I get a "windows cannot access the specified device,path or file. You may not have
the appropriate
permissions to access the item" WTF?
Ctz
Tuesday, July 15, 2003, 6:26:35 PM, you wrote:
MD> Download it now:
MD> http://www.cfregex.com
MD>
Download it now:
http://www.cfregex.com
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.
9:27 AM
To: CF-Talk
Subject: SOT: Regular Expression
Are there any resources / tutorials / tools / Cftags / UDF / CFC's /
functions that would allow a plain-text string to be converted to ASCII HTML
code? (ie, A = A and s
Are there any resources / tutorials / tools / Cftags / UDF / CFC's /
functions that would allow a plain-text string to be converted to ASCII HTML
code? (ie, A = A and so on)
Thanks, Mark
~|
Archives: http://www.houseoffusion.co
it has a name :-)
--Ben Doom
Programmer & General Lackey
Moonbow Software
: -Original Message-
: From: Jerry Johnson [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 23, 2002 2:29 PM
: To: CF-Talk
: Subject: Re: Regular expression question
:
:
: if you are too lazy t
MAIL PROTECTED]]
: Sent: Monday, December 23, 2002 2:29 PM
: To: CF-Talk
: Subject: Re: Regular expression question
:
:
: if you are too lazy to try Ray's suggestion (as I often am),
: something like this might get you there.
:
:
:
: (Of course, this assumes there was an email to find, other
: From: Lofback, Chris [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 23, 2002 2:05 PM
: To: CF-Talk
: Subject: RE: Regular expression question
:
:
: Hmm. I like this more-concise method, but I only get the last
: character of
: the user ID rather than the full user ID. For example, I use this...
if you are too lazy to try Ray's suggestion (as I often am), something like this might
get you there.
(Of course, this assumes there was an email to find, otherwise
emailAddress=blockoftext)
FWIW
Jerry
>>> [EMAIL PROTECTED] 12/23/02 11:22AM >>>
Is there a way to return just the string that a
and a powerful ally it is." - Yoda
> -Original Message-
> From: Ben Doom [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 1:17 PM
> To: CF-Talk
> Subject: RE: Regular expression question
>
>
> Yes, it's the greedy match that's getting you
at the beginning of the
string, you'll have a problem.
HTH.
--Ben Doom
Programmer & General Lackey
Moonbow Software
: -Original Message-
: From: Lofback, Chris [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 23, 2002 2:05 PM
: To: CF-Talk
: Subject: RE: Regular
Ste. C
Clearwater, FL 33761
www.trxi.com
> -Original Message-
> From: Ben Doom [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 12:44 PM
> To: CF-Talk
> Subject: RE: Regular expression question
>
>
> Or, if you prefer to simply return
ssage-
: From: Raymond Camden [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 23, 2002 11:29 AM
: To: CF-Talk
: Subject: RE: Regular expression question
:
:
: Add the 3rd and 4th optional args - the 3rd arg, where to start, should
: be set to 1, and the 4th, is a boolean that specifies if y
ot; - Yoda
> -Original Message-
> From: Lofback, Chris [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 10:22 AM
> To: CF-Talk
> Subject: Regular expression question
>
>
> Is there a way to return just the string that a REFind
> matches? I'm trying to
Is there a way to return just the string that a REFind matches? I'm trying
to pull an email address out of a block of text. I can find the beginning
using this:
REFindNoCase("['_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.(([a-z
]{2,3})|(aero|coop|info|museum|name))",BlockOfText)
But I
il in error please delete it immediately and
: advise us by return e-mail to [EMAIL PROTECTED]
:
: *
:
:
: -Original Message-
: From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]]
: Sent: Friday, December 06,
#x27; which was not expected. The string 'some
phrase' really is just that without any extra spaces.
Either way, 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-
error please delete it immediately 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-T
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
hrase' 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 n
PROTECTED]
*
-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]
"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 r
; 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 use "[[:punct:]]||[[:space:]]" as the RegEX
>
> Joshua Miller
> Head Programmer / IT
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
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
shua Miller [mailto:[EMAIL PROTECTED]]
> 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
&
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:]]","_&
CTED]]
> Sent: Friday, 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 na
Something like
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 to change all possible special
characters in a string to underscores
PROTECTED]
*
-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
chara
urn e-mail to [EMAIL PROTECTED]
*
-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
charact
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
I want to make sure that no special characters are entered into my form
before submitting.
What is the syntax for the regular expression to put within the pattern
attribute of the form tag.
__
Get the mailserver that powers
>
> What I'd like to do is automatically strip out any other HTML tag (or
> JavaScript, CSS, DHTML, etc.) from the submission but leave the safe tags.
> I'm thinking that using a regular expression string to do this would be the
> way to go, however there is something to cons
t all.
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
cally strip out any other HTML tag (or
JavaScript, CSS, DHTML, etc.) from the submission but leave the safe tags.
I'm thinking that using a regular expression string to do this would be the
way to go, however there is something to consider about that idea. The data
ends up in an NTEXT field in th
tion will return 0 (failure).
There's a tutorial on RegEx at www.houseoffusion.com on the front page.
> I want to do a regular expression validation on a form field (city).
> However, I'm rather unfamiliar with regular expressions.
>
> How would I rewrite the expre
201 - 300 of 465 matches
Mail list logo