Skip to main content
Inspiring
February 10, 2009
Answered

regular expression problem?

  • February 10, 2009
  • 2 replies
  • 333 views
Hi I have a file which contains the following text

<cfset objNews.strNewsTickerLink = "index.cfm?pageid=83">

Now what i'd like to do is to scrape out the value of this variable i.e. 'index.cfm?pageid=83'. Now this variable can be different.... so basically whatever the value of the variable objNews.strNewsTickerLink is set to.. I'd like to get it out. Now I'm not that great with regular expressions... can anyone help me out?

Thx
    This topic has been closed for replies.
    Correct answer zubair
    thanks... but I have found an even better one that does the job for me

    http://cflib.org/udf/GetContainer

    2 replies

    zubairAuthorCorrect answer
    Inspiring
    February 10, 2009
    thanks... but I have found an even better one that does the job for me

    http://cflib.org/udf/GetContainer

    Inspiring
    February 10, 2009
    Hi,

    One way of handling that is to use this UDF,

    http://cflib.org/udf/queryStringGetVar

    But, you must be aware of the url variable that comes after "?" symbol in order to use the above udf. If it is dynamically generated you need to write your own regular expression.

    HTH