forgot to say that these results should then be concatonated to return what
you want so could be wrapped into a udf

HTH

-----Original Message-----
From: Mike Townend [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 16:05
To: CF-RegEx
Subject: RE: Regex function help needed.

you could potentially do it without a regex

<CFSET lstSentence = "Homer Simpson is cool">

<CFOUTPUT>
    #ListGetAt(lstSentence, 1, " ")#<br>
    #ListGetAt(lstSentence, 2, " ")#<br>
    #ListGetAt(lstSentence, 3, " ")#<br>
</CFOUTPUT>

HTH

-----Original Message-----
From: Ketan Patel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 16:02
To: CF-RegEx
Subject: Regex function help needed.

Hi all,
I am looking for a regular _expression_ where I can get first 1,2,3 words of
teh sentence. I want to pass a prameter saying give me 1, 2 or 3 words of
teh sentence.

Suppose My sentence is:
Hotel Reservations Online. Discount Hotel Reservations in every city -
Orlando, Las Vegas, New York, London, Miami and more.

I want to get just 1 word then it should be Hotel. If 2 words then it should
be Hotel Reservations.

Ketan Patel
  _____
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to