Coder Social home page Coder Social logo

findurlsfromtext's Introduction

findURLsFromText

const text = 'One. http://localhost:8080\nTwo. www.naver.com?t=1641096928\nThree. open.kakao.com/me/elif\nFour. xqing.tech:65535\nFive. xqing.tech:65536';

console.log(`Original Text:\n${text}`);
// Original Text:
// One. http://localhost:8080
// Two. www.naver.com?t=1641096928
// Three. open.kakao.com/me/elif
// Four. xqing.tech:65535
// Five. xqing.tech:65536

const urlsArray = findURLsFromText(text);

console.log(urlsArray);
// [
//     'http://localhost:8080',
//     'http://www.naver.com?t=1641096928',
//     'http://open.kakao.com/me/elif',
//     'http://xqing.tech:65535',
//     'http://xqing.tech'
// ]

findurlsfromtext's People

Contributors

lif-lee avatar

Stargazers

리리리프 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.