0
Explorer
,
/t5/coldfusion-discussions/regular-expression-problem/td-p/819509
Feb 10, 2009
Feb 10, 2009
Copy link to clipboard
Copied
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
<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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
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
http://cflib.org/udf/GetContainer
Advocate
,
/t5/coldfusion-discussions/regular-expression-problem/m-p/819510#M75875
Feb 10, 2009
Feb 10, 2009
Copy link to clipboard
Copied
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
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
LATEST
/t5/coldfusion-discussions/regular-expression-problem/m-p/819511#M75876
Feb 10, 2009
Feb 10, 2009
Copy link to clipboard
Copied
thanks... but I have found an even better one that does the
job for me
http://cflib.org/udf/GetContainer
http://cflib.org/udf/GetContainer
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

