Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- siteContents = "Anavrins [BG:BLACK]test site! [C:RED][CENTER]NOTHING IS REAL[/CENTER][CENTER][C:LIME]i'm editing this site in notepad++[/CENTER][CENTER]i made a markup language. :)[/CENTER] [BR][C:WHITE]make it rain krist wooo [BR][BR]by the way nice hat[BR][CENTER]centered text [C:RED]with color[C:WHITE] took [HL:RED]forever[HL:BLACK] to make[/CENTER][CENTER]also, the refresh button barely works[/CENTER] i'm just writing random stuff now.[BR]comp id: [ID][BR]PHP random number: 759704590[BR][C:THEMEFG]fuck shit gets its color from the theme[CR]this text[END]"
- counter=0
- for pword,tag,arg,aword,space in siteContents:gmatch("(%w*)%[?(%/?%w*):?(%w*)%]?(%w*)(%s*)") do -- preword, tag, argument, afterword, space
- counter=counter+1
- print(counter)
- sleep()
- end
Advertisement
Add Comment
Please, Sign In to add comment