Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using wildcards in hyperlinks

Status
Not open for further replies.
Excuse the question but WHY would you have wildcards in a hyperlink ??
Surely a hyperlink is a link to a specific file or url and as such can't have a wildcard in it - it ain't gonna open multiple files that corresponds to a wildcard....??
:-?
 
This thread is getting old but the question still remains. Can you have wildcards in a hyperlink?
The Why for me is: We have hyperlinks to drawings that have a base number then a revision letter, i.e. 12345-A.dwg. Well when the drawing gets revised the 'A' changes to a 'B'. Thus the hyperlink will not work anymore, it must be changed manually each time there is a revision and we can have 50-60 drawing revisions per month. It would be nice to use a wildcard for the revision letter, but maybe it can't be done.?.
Any help or feedback would be much appreciated.
Thanks in advance.
Jazz1963
 
You still wouldn't use a wildcard though would you - that'd end up pointing to multiple drawings - as is the function of a wildcard - you would need code using a wildcard to find all the files in the directory and then a function to find the latest revision. Cobble that lot together and create a hyperlink from it:

[pseudocode]
Specify file name and directory
Find all files that match with the wildcard for the revision letter
Use that list of files to find the latest revision
Assign that name to a variable
Set the hyperlink to that variable
[/pseudocode]

Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
Here's why I want to use a wildcard in a hyperlink...

I want to lock down the Internet Explorer using Content Advisor. I've created a noaccess.rat file and have locked out all web sites according to Microsoft's instructions found here --
I would like to be able to "allow" some sites, like But as soon as you try to get into another part of the juno website, you are not allowed because it is a different URL, but it still starts with Therefore, if I could use a wildcard, say that would let the user access all of Juno, but nowhere else!

Thanks ahead of time for the answer!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top