Message-
From: Jared Stark [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:11 PM
To: CF-Talk
Subject: Regular Expression Help
Hello all. I am trying to write a simple search engine, and would like
to replace certain commonly used prepositions from the search string
Or you could use ListReplace with as the delimiter -- as long as you
force everything lower case first.
- Original Message -
From: Jared Stark [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, March 02, 2002 10:10 AM
Subject: Regular Expression Help
Hello all. I am
I have a field that will be populated with a first name and a last name,
what I want to do is make sure that the first letter of the first last
name is uppercase and that all others are lower case. Could someone help
in a reg expression that will do this?
There are two major products
I have a field that will be populated with a first name and a last name,
what I want to do is make sure that the first letter of the first last
name is uppercase and that all others are lower case. Could someone help
in a reg expression that will do this?
I'm having problems finding ways
To: CF-Talk
Subject: Regular expression help
I have a field that will be populated with a first name and a last name,
what I want to do is make sure that the first letter of the first last
name is uppercase and that all others are lower case. Could someone help
in a reg expression
, 2002 11:20 AM
Subject: RE: Regular expression help
try
CFIF REFind(^[A-Z][a-z]+, VARIABLENAME)
it's capitalized!
/CFIF
christopher olive, cto, vp of web development
cresco technologies, inc
410.825.0383
http://www.crescotech.com
-Original Message-
From: Douglas Brown
: Regular expression help
That definately will not do it.
There are two major products that come out of Berkeley: LSD and [Unix]
BSD. We don't believe this to be a coincidence.
Doug Brown
- Original Message -
From: Christopher Olive [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent
this to be a coincidence.
Doug Brown
- Original Message -
From: Douglas Brown [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 11:43 AM
Subject: Re: Regular expression help
That definately will not do it.
There are two major products that come out
: Wednesday, January 16, 2002 3:00 PM
To: CF-Talk
Subject: Re: Regular expression help
All refind does is find the starting position of a string.
IE:
CFSET test = REFind(^[A-Z][a-z]+, hello world)
CFOUTPUT
#test#
/CFOUTPUT
returns 0
I need it to change hello world to Hello World
There are two
]
-
Macromedia Associate Partner
www.macromedia.com
- Original Message -
From: Douglas Brown [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 12:00 PM
Subject: Re: Regular expression help
All refind does is find
opinion. :)
Of course, RegExp has its uses. In your case, it isn't the most optimal
solution.
James.
-Original Message-
From: Douglas Brown [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 12:00 PM
To: CF-Talk
Subject: Re: Regular expression help
All refind does is find
Here's a UDF I may not be the most eloquent but it does work.
I used it to do tile casing. why my string is title ;o)
CFscript
//Changes a String to Title case
Function TitleCase(title){
title = trim(title);
//Caps first letter of string and
There was a /CFSCRIPT at the bottom, must have gotten cut off.
-Original Message-
From: Bruce, Rodney (Contractor) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 1:05 PM
To: CF-Talk
Subject: RE: Regular expression help
Here's a UDF I may not be the most eloquent
Douglas Brown wrote:
I have a field that will be populated with a first name and a last name,
what I want to do is make sure that the first letter of the first last
name is uppercase and that all others are lower case. Could someone help
in a reg expression that will do this?
It is
, January 16, 2002 11:57 AM
Subject: RE: Regular expression help
Use the UDF: capFirstTitle()
http://www.cflib.org/udf.cfm?ID=116
For your purpose, CF RegExp won't do it as well as what Ed Hodder
implemented with his UDF.
But, FYI, REFind() and REFindNoCase() can return subexpressions.
Example
-Original Message-
From: gyrus [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 9 november 2001 0:32
To: CF-Talk
Subject: regular expression help!
The code I'm doing now is actually in JS, but I'm having a
general CF/JS regular expression learning binge, and I've hit
a brick wall - can anyone help
You could just find the first head, store the position, find the next head,
store the position, and then just use mid(string,pos+6,pos-1) to strip the
middle out
maybe there is a more efficient way
Brook
At 11:32 PM 08/11/01 +, you wrote:
The code I'm doing now is actually in
Try using
cfset string=rereplace(string,(head)[[:print:]]*(/head),,all)
That should find anything with a beginning of head and an ending of
/head and strip them out and any printable character in between with an
empty string. I'm not sitting at a coldfusion enabled server, so I can't
verify,
I need a regular expression to remove all characters from a string that are
NOT in this list:
comma, space, dash, plus, digit, or one of several two-letter codes such
as NM.
This regular expression works for everything except the two-letter codes:
REReplaceNoCase(TheInput,[^,
Dain, thank you very much. Is it safe to assume then that
anything else i
want to search for can be added by placing the definition
inside another
pair of brackets?
Yeah, square brackets define a class to match against, and clasess are or'ed
together.
[^ ] would match everything that
PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, July 27, 2001 1:39 AM
Subject: Re: Regular Expression Help
Dain, thank you very much. Is it safe to assume then that anything else i
want to search for can be added by placing the definition inside another
pair of brackets?
REFindNoCase
:
nc.rr.comSubject: Re: Regular Expression Help
I find that:
[0-9]
is clearer and easier to type than:
[:digit:]
of course, I'd rather have:
\d
I do very well without ever using the posix-style.
Dick
At 8:56 AM -0400 7/27/01, [EMAIL PROTECTED] wrote:
Being a Perl programmer also, this is one of the things that really
Hello, i'm having some trouble using regular expressions. i read the book
and looked up examples, but unfortunately, i can't seem to solve my problem.
i've written code that checks to see if there is either a letter or a
punctuation mark in a string, but it's not returning results properly.
or punctuation found.
/cfif
Dain Anderson
Caretaker, CF Comet
http://www.cfcomet.com/
- Original Message -
From: John Barleycorn [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 6:42 PM
Subject: Regular Expression Help
Hello, i'm having some trouble using regular
PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: Re: Regular Expression Help
Date: Thu, 26 Jul 2001 21:02:45 -0400
John,
You almost had it (too many brackets):
cfif REFindNoCase([[:Alpha:][:Punct:]], myString)
Alpha characters or punctuation were found.
cfelse
Help!
I want to do a find for a text expression, which is to be followed on the
next line by another text expression. Only, the amount of whitespace
(indentation) after the carriage return varies. Can I do this with regular
expressions?
In other words the text i am looking for is like this:
Greetings All,
I am in the process of developing a small headache with Regular
Expressions...
I have looked at all of the examples I could find on the archives of this
mailing list and other web
pages but I still just don't get it.. I think I will pickup the O'Reilly
book that I have seen at
OT: are there any statistics on how many developers regexp has made bald?
~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives:
Re: use of regular expressions for parsing html
One can reliably use regular expressions to parse html if it is
html that you have direct and full editorial control over.
That is, if you hand edit the html, AND you can keep all your
requirements in mind, then you can use with some success
: Mallory Woods [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 10:17 AM
To: CF-Talk
Subject: Regular expression Help
Greetings All,
I am in the process of developing a small headache with Regular
Expressions...
I have looked at all of the examples I could find on the archives of this
mail
: Mallory Woods [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 8:17 AM
To: CF-Talk
Subject: Regular expression Help
Greetings All,
I am in the process of developing a small headache with Regular
Expressions...
I have looked at all of the examples I could find on the archives of this
mailing
uot; content=""([a-zA-Z0-9,: ]+[^GMT"])""",
YourStringNameGoesHere)
Remember CF RE's are aggressive. Keep a leash on em ;)
Hope this helps.
Scott Cavanaugh
Software Developer
Online Operations
Salem Communications Corporation
-Original Message-
From: Mallory
Help for a regular expression idiot.
I'm looking to remove all the characters between two tags:
example
from: table asldfj lskdf jaskldf jklasdf jlaskdfj lasdkf /table
to: table/table
(removing the tags themselves would be a plus)
another way (adding some other unique text for the
regexp to look for).
Douglas Malcolm
-Original Message-
From: Jeff Britts [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 11:50 AM
To: CF-Talk
Subject: Regular expression help
Help for a regular expression idiot.
I'm l
On Fri, 23 Feb 2001 10:33:10 +1300, in cf-talk you wrote:
Firstly I'd like to mention that doing this is playing with fire. ;)
Yeah, of course it is ;)
Secondly, I'd suggest three replaces:
1. Replace application.cfm with an easily recognisable other string without
application in the name.
2.
Hi, I'm trying to globally replace (with CF Studio) application
variables with request variables in several sites. I can't figure out
exactly how, as I don't know how to negate strings (as opposed to just
character classes).
I want to change application.variableX to request.variableX, but I
: Thursday, February 22, 2001 10:35 AM
To: CF-Talk
Subject: Regular Expression Help?
Hi, I'm trying to globally replace (with CF Studio) application
variables with request variables in several sites. I can't figure out
exactly how, as I don't know how to negate strings (as opposed to just
character
:35 AM
To: CF-Talk
Subject: Regular Expression Help?
Hi, I'm trying to globally replace (with CF Studio) application
variables with request variables in several sites. I can't figure out
exactly how, as I don't know how to negate strings (as opposed to just
character classes).
I want to change
Firstly I'd like to mention that doing this is playing with fire. ;)
Secondly, I'd suggest three replaces:
1. Replace application.cfm with an easily recognisable other string without
application in the name.
2. Replace "([^a-zA-Z0-9])application.([a-zA-z])" with "\1request.\2".
3. Replace the
Hi all. For a wonderful reference on regular expressions, go to
Albany New York Cold Fusion User Group : http://www.anycfug.org/index.cfm
Regular Expressions- Jerry Ela
Special-View an excellent online presentation developed by Jerry Ela on Regular
Expressions (A must see!)
Other good info
I have some text, and in this text there may or may not be URLs. Some of
these URLs may already be inside of an A HREF tag while others may not. I
need a regular expression that will find all the URLs (starting with
http:// or www. or email addresses) that are not already inside of HREF
first strip out all the href tags then add href tags to all URLS
Joe Sheble aka Wizaerd [EMAIL PROTECTED] wrote:
I have some text, and in this text there may or may not be URLs. Some of
these URLs may already be inside of an A HREF tag while others may not. I
need a regular expression that
Find them using RE "[^](http://[a-zA-Z0-9/.-]+)[^]" (or perhaps a better url
RE if you like). This means an URL not sandwiched between two tags... good
enough?
Could do it something like this:
rereplace(page, "([^])(http://[a-zA-Z0-9/.-]+)([^])", "\1a
href="\2"\2/a\3")
Which is basically using
I need to find the "" of the body tag of CFHTTP.FileContent.
So, I need to find the first "" following body.
Can anyone help with this?
Thanks is advance,
Peter Janett
New Media One Web Services
WEB HOSTING FOR WEB DEVELOPERS
I need to find the "" of the body tag of CFHTTP.FileContent.
So, I need to find the first "" following body.
cfset FoundTag = REFind("(body[^]*)()", TheString, 1, "TRUE")
cfset ClosingBracketLocation = DecrementValue(FoundTag.pos[1] +
FoundTag.len[1])
Try:
cfset CFHTTP.FileContent = "12345body1234512345Body12345"
cfset bodyBegin = ReFindNoCase("\body", CFHTTP.FileContent)
cfset bodyEnd = ReFindNoCase("" , CFHTTP.FileContent, bodyBegin)
cfoutput
brbodyBegin.|#bodyBegin#|
brbodyEnd...|#bodyEnd#|
Well, you've got some characters other than :Alnum: and :space:. You've got
:punct: in there also.
-Original Message-
From: sebastian palmigiani [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 29, 2000 1:29 PM
To: CF-Talk
Subject: regular expression help
What am I doing wrong here
September 29, 2000 7:29 PM
To: CF-Talk
Subject: regular expression help
What am I doing wrong here? What is the regular expression that will extract
a match?
STRING=
cfset HTML = 'td valign=top class="leftColumn"
Merge onto N LAKE SHORE DR/td tdimg
src="http://mq
To: [EMAIL PROTECTED]
Sent: Saturday, September 16, 2000 9:27 PM
Subject: RE: My brain is fried, can someone give me some regular expression
help please...
How about:
cfset nNumTabs = ListLen(sOrderFile, "#chr(9)#"
-Original Message-
From: Sean Renet [mailto:[EMAIL PROTECT
now you would think that would work, but it doesn't.
when running the code below, you see that there are 51 tabs in the
string.
If you use listlen, you only get the tabs that have data between them
which
amounts to 34.
Hey Allaire, are you reading this? How about
ListLen(List, 38,
, September 17, 2000 4:25 AM
To: [EMAIL PROTECTED]
Subject: Re: My brain is fried, can someone give me some regular
expression help please...
now you would think that would work, but it doesn't.
when running the code below, you see that there are 51 tabs in the string.
If you use listlen, you only get
ANZ eCommerce Centre
* Ph 9273 0693
* [EMAIL PROTECTED]
-Original Message-
From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2000 20:05
To: [EMAIL PROTECTED]
Subject: Re: My brain is fried, can someone give me some regular
expression help please...
now you would
eCommerce Centre
* Ph 9273 0693
* [EMAIL PROTECTED]
-Original Message-
From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2000 20:05
To: [EMAIL PROTECTED]
Subject: Re: My brain is fried, can someone give me some regular
expression help please...
now you w
I have a character string, which is basically a tab delimited list. I need
a regular expression that will count the tabs in the string and verify they
are all there.
Essentially, I would like a regular expression that does this:
cfset sOrderFile = "123 75 w1234567890 GRD 8/17/00 Sean Renet
How about:
cfset nNumTabs = ListLen(sOrderFile, "#chr(9)#"
-Original Message-
From: Sean Renet [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 16, 2000 10:38 PM
To: [EMAIL PROTECTED]
Subject: My brain is fried, can someone give me some regular expression
help please..
You need the chr(13) chr(10) characters to be replaced with br
-Original Message-
From: Nicole R. Lane [mailto:[EMAIL PROTECTED]]
Sent: Friday, 23 June 2000 2:54 PM
To: [EMAIL PROTECTED]
Subject: Regular Expression Help
Hi:
I'm trying to replace the new line character with BR
:[EMAIL PROTECTED]]
Sent: Thursday, June 22, 2000 10:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Regular Expression Help
Application.cfm files are great for saving on coding and site management and
stuff, but when you have sub folders that need their own Application.cfm
files, they become less
101 - 158 of 158 matches
Mail list logo