Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

regular expression problem?

Explorer ,
Feb 10, 2009 Feb 10, 2009
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
299
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Feb 10, 2009 Feb 10, 2009
thanks... but I have found an even better one that does the job for me

http://cflib.org/udf/GetContainer

Translate
Advocate ,
Feb 10, 2009 Feb 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 10, 2009 Feb 10, 2009
LATEST
thanks... but I have found an even better one that does the job for me

http://cflib.org/udf/GetContainer

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources