RegExpValidator does not validate a URL pattern correctly

前端 未结 3 2025
再見小時候
再見小時候 2021-01-26 04:58

The URL http://www.ftd.de/rss2 is not valid when I check it against the below RegEx in this (unadventurous) :



        
3条回答
  •  旧时难觅i
    2021-01-26 05:40

    You can use mx.utils.URLUtil class:

    trace(URLUtil.isHttpURL( 'http://www.ftd.de/rss2')); //true
    

    It is also helpful for extracting different parts of url.

提交回复
热议问题