zharfan 0 Posted June 15, 2014 Report Share Posted June 15, 2014 hello every body... i have list -> hand tattoos tumblr:simple hand tattoos tumblr,tree hand tattoos tumblr,side hand tattoos tumblr,rose hand tattoos tumblr,guy hand tattoos tumblr,flower hand tattoos tumblr and then I would like to take the hand tattoos tumblr without : so the result will be like hand tattoos tumblr what the regex code? Quote Link to post Share on other sites
Bot-Factory 602 Posted June 15, 2014 Report Share Posted June 15, 2014 hello every body... i have list -> hand tattoos tumblr:simple hand tattoos tumblr,tree hand tattoos tumblr,side hand tattoos tumblr,rose hand tattoos tumblr,guy hand tattoos tumblr,flower hand tattoos tumblr and then I would like to take the hand tattoos tumblr without : so the result will be like hand tattoos tumblr what the regex code? Hi. If you want to learn regex I highly recommend:http://www.ubotstudio.com/forum/index.php?/topic/15905-sell-learn-regular-expressions-video-course-2-hours-of-content/?hl=regexhttp://www.ubotstudio.com/forum/index.php?/topic/13979-sell-regex-builder-build-regular-expressions-for-ubot-with-ease/?hl=regex CheersDan Quote Link to post Share on other sites
Team_LX 3 Posted June 15, 2014 Report Share Posted June 15, 2014 this is how i would do that as if i get you right your just wanting the text (hand tattoos tumblr) if so look at the below this is how i would do it set(#start, "hand tattoos tumblr:simple hand tattoos tumblr,tree hand tattoos tumblr,side hand tattoos tumblr,rose hand tattoos tumblr,guy hand tattoos tumblr,flower hand tattoos tumblr", "Global")set(#before, $find regular expression(#start, "hand tattoos tumblr:"), "Global")set(#after, $find regular expression(#before, "hand tattoos tumblr"), "Global") So basic get your text from where ever your getting it etc... i just set to show example then i find it easy to regex for hand tattoos tumblr: then set it then reg that Var to get hand tattoos tumblr with out the ( : ) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.