6 Replies Latest reply on Mar 25, 2011 8:56 AM by Manweevil

    regexp not working


      trying to strip strings out of a http request using a regexp:

      I'm querying a server as to the presence of PDF files in a directory, then parsing a list from the rawhtml, unfortunately, some of the files contain periods and commas, and the Regexp only matches a string from after the punctuation character,


      e.g.: "John M. Smith.pdf" gets matched as "Smith.pdf"


      Here's the Regexp:


      <cffunction name="parsePDF" access="public" returntype="string">
              <cfargument name="RAWHTML" type="string" required="yes">
              <cfset REGEXPMATCH="^[\s\S][[:punct:]]*\.pdf$">
              <cfreturn REMatchNoCase(REGEXPMATCH,RAWHTML)>





      Server ProductColdFusion


      IIS 6