Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (%wordCount > 0) {
- var %currentWord $gettok(%template [ $+ [ $nick ] ],%wordCount,32)
- echo $chan checking word for urls...
- echo $chan currentWord: %currentWord
- echo $chan regex: %urlpattern
- echo $chan results: $regex(url, %currentWord , %urlpattern)
- echo $chan error string: $regerrstr
- echo $chan --
- if ($regex(url,%currentWord,%urlpattern) >= 1) {
- echo $chan WENT!
- var %template [ $+ [ $nick ] ] $reptok(%template [ $+ [ $nick ] ], %currentWord, %urlColor $+ %currentWord $+ , 0,32)
- }
- dec %wordCount 1
- }
- echo $chan -------
- echo $chan URL CHECKING END....
- echo $chan -------
- ;;;;; Example Output --------------------------------------------
- ;;-------
- ;;URL CHECKING....
- ;;-------
- ;;checking word for urls...
- ;;currentWord: https://www.stfumelanie.com
- ;;regex: ^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$
- ;;results: 0
- ;;error string:
- ;;--
- ;;checking word for urls...
- ;;currentWord: <@Florie>
- ;;regex: ^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$
- ;;results: 0
- ;;error string:
- ;;--
- ;;-------
- ;;URL CHECKING END....
- ;;-------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement