Skip to main content
May 13, 2009
Answered

Wild card [JS]

  • May 13, 2009
  • 1 reply
  • 879 views
I need to exclude links to their extension, for example if they are. Eps exclude it and. Jpg include it , someone  knows if could do with regular expressions or some other method?
Thanks in advance.
This topic has been closed for replies.
Correct answer Peter Kahrel

if (myLink.name.match (/\.eps$/) != null)

   // go ahead


Peter

1 reply

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
May 13, 2009

if (myLink.name.match (/\.eps$/) != null)

   // go ahead


Peter

May 13, 2009

Thanks Peter!