Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hasUrl(inputText) {
- var regex = /[-a-zA-Z0-9@:%_+.~#?&//=]{2,256}.[a-z]{2,4}b(/[-a-zA-Z0-9@:%_+.~#?&//=]*)?/g;
- var matches = 0;
- var match;
- while ((match = regex.exec(inputText))) {
- return true;
- }
- return false;
- }
Add Comment
Please, Sign In to add comment