18 Replies Latest reply on Nov 23, 2007 11:13 AM by kglad

    Regular Expression Help

    pbesong Level 1
      I need to check the name of a file so I can make the right button become visible. I am trying to test the name of a media file to see if it ends in ".mp3" or not. If it does, I want to make the audio play buttons visible. If not, I want to make the video buttons visible. Here is the code I've written so far. This always returns true whether the file ends in ".mp3" or not. There are 8 buttons in all and they will either be audio or video. I don't understand regular expressions that well in AS, so I appreciate any help.