Sort by

recency

|

98 Discussions

|

  • + 0 comments
    function regexVar() {
        /*
         * Declare a RegExp object variable named 're'
         * It must match ALL occurrences of numbers in a string.
         */
        
         const re = /([0-9]+)/g;
    
    
        
        /*
         * Do not remove the return statement
         */
        return re;
    }
    
  • + 0 comments
    function regexVar() {
    return new RegExp("\\d+", "g");
    }
    
  • + 0 comments
    function regexVar() { 
    
        const re = /\d+/g;
    		
        return re;
    }
    
  • + 0 comments
    function regexVar() {
        let re = /\d{1,}/g
        return re;
    }
    
  • + 0 comments
    const re = /\d+/gm