Menu

Array-bounds issue with RxGetMatches()

craig
2012-08-01
2013-04-25
  • craig

    craig - 2012-08-01

    While

    RxMatch( "foo 08/01/2012 bar", "[0-9]{2}/[0-9]{2}/[0-9]{4}" )
    

    returns True,

    RxGetMatches( "foo 08/01/2012 bar", "[0-9]{2}/[0-9]{2}/[0-9]{4}" )[1]
    

    generates an array-bounds error.

    Ubound( RxGetMatches( "foo 08/01/2012 bar", "[0-9]{2}/[0-9]{2}/[0-9]{4}" )[1] )
    

    equals 0, when it should equal 1.

     
  • TzuDeNimes

    TzuDeNimes - 2012-09-03

    Thanks Craig, I've uploaded a new version which should fix this.

     

Log in to post a comment.