RE: Regular Expression Help

2002-03-01 Thread Shawn Grover
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

Re: Regular Expression Help

2002-03-01 Thread Matthew Walker
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

Regular expression help

2002-01-16 Thread Douglas Brown
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

Re: Regular expression help

2002-01-16 Thread Gyrus
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

RE: Regular expression help

2002-01-16 Thread Christopher Olive
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

Re: Regular expression help

2002-01-16 Thread Douglas Brown
, 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

RE: Regular expression help

2002-01-16 Thread Christopher Olive
: 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

Re: Regular expression help

2002-01-16 Thread Douglas Brown
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

RE: Regular expression help

2002-01-16 Thread Christopher Olive
: 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

Re: Regular expression help

2002-01-16 Thread Bryan Stevenson
] - 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

RE: Regular expression help

2002-01-16 Thread James Ang
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

RE: Regular expression help

2002-01-16 Thread Bruce, Rodney (Contractor)
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

RE: Regular expression help

2002-01-16 Thread Bruce, Rodney (Contractor)
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

Re: Regular expression help

2002-01-16 Thread Jochem van Dieten
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

Re: Regular expression help

2002-01-16 Thread Douglas Brown
, 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

RE: regular expression help!

2001-11-09 Thread Pascal Peters
-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

Re: regular expression help!

2001-11-08 Thread Brook Davies
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

Re: regular expression help!

2001-11-08 Thread Stuart Duncan
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,

multicharacter regular expression help

2001-08-19 Thread Conan Saunders
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,[^,

RE: Regular Expression Help

2001-07-27 Thread Thomas Chiverton
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

Re: Regular Expression Help

2001-07-27 Thread Dain Anderson
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

Re: Regular Expression Help

2001-07-27 Thread eric . laney
: nc.rr.comSubject: Re: Regular Expression Help

Re: Regular Expression Help

2001-07-27 Thread Dick Applebaum
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

Regular Expression Help

2001-07-26 Thread John Barleycorn
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.

Re: Regular Expression Help

2001-07-26 Thread Dain Anderson
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

Re: Regular Expression Help

2001-07-26 Thread John Barleycorn
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

Regular expression help

2001-06-06 Thread andrew kopelman
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:

Regular expression Help

2001-03-23 Thread Mallory Woods
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

Re: Regular expression Help

2001-03-23 Thread Savan Thongvanh
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: Regular expression Help

2001-03-23 Thread Larry W. Virden
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

RE: Regular expression Help

2001-03-23 Thread Hayes, David
: 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

RE: Regular expression Help

2001-03-23 Thread Douglas Malcolm
: 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

RE: Regular expression Help

2001-03-23 Thread Scott Cavanaugh
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

Regular expression help

2001-03-15 Thread Jeff Britts
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)

RE: Regular expression help

2001-03-15 Thread Douglas Malcolm
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

Re: Regular Expression Help?

2001-02-23 Thread Jamie Jackson
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.

Regular Expression Help?

2001-02-22 Thread Jamie Jackson
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

RE: Regular Expression Help?

2001-02-22 Thread Phoeun Pha
: 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

Re: Regular Expression Help?

2001-02-22 Thread Jamie Jackson
: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

Re: Regular Expression Help?

2001-02-22 Thread David Cummins
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

Re[2]: Regular Expression Help

2001-02-10 Thread Carol Bluestein
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

Regular Expression Help

2001-02-08 Thread Joe Sheble aka Wizaerd
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

Re: [Regular Expression Help]

2001-02-08 Thread Alex
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

Re: Regular Expression Help

2001-02-08 Thread David Cummins
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

Regular Expression help

2000-10-15 Thread CF
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

RE: Regular Expression help

2000-10-15 Thread Matthew Walker
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])

Re: Regular Expression help

2000-10-15 Thread Dick Applebaum
Try: cfset CFHTTP.FileContent = "12345body1234512345Body12345" cfset bodyBegin = ReFindNoCase("\body", CFHTTP.FileContent) cfset bodyEnd = ReFindNoCase("" , CFHTTP.FileContent, bodyBegin) cfoutput brbodyBegin.|#bodyBegin#| brbodyEnd...|#bodyEnd#|

RE: regular expression help

2000-09-29 Thread Hayes, David
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

RE: regular expression help

2000-09-29 Thread Mark Johnson
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

Re: My brain is fried, can someone give me some regular expression help please...

2000-09-17 Thread Sean Renet
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

Re: My brain is fried, can someone give me some regular expression help please...

2000-09-17 Thread Aidan Whitehall
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,

RE: My brain is fried, can someone give me some regular expression help please...

2000-09-17 Thread Jeff Beer
, 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

RE: My brain is fried, can someone give me some regular expression help please...

2000-09-17 Thread Scott, Andrew
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

Re: My brain is fried, can someone give me some regular expression help please...

2000-09-17 Thread David Cummins
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

My brain is fried, can someone give me some regular expression help please...

2000-09-16 Thread Sean Renet
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

RE: My brain is fried, can someone give me some regular expression help please...

2000-09-16 Thread Jeff Beer
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..

RE: Regular Expression Help

2000-06-29 Thread Andrew Scott
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

RE: Regular Expression Help

2000-06-23 Thread Steve Bernard
:[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

<    1   2