Jump to content
UBot Underground

Regex Working In Editpad Etc But Not Ubot


Recommended Posts

So I have this big regex for finding emails and its working in everything but uBot. 

 

Here is the regex as entered in uBot.

([a-z0-9][-a-z0-9_\+\.]*[a-z0-9])@([a-z0-9][-a-z0-9\.]*[a-z0-9]\.(arpa|root|aero|biz|cat|com|coop|edu|gov|info|int|jobs|me|mil|mobi|museum|name|net|org|pro|tel|travel|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|ke|kg|kh|ki|km|kn|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pr|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw))

So I am trying to match this email "FunLearning@mac.com" as mentioned in all other programs this works fine online testers included. When I use it in uBot 4 or 5 it only returns "earning@mac.com".

 

Is there some special uBot formatting I am missing here?

Link to post
Share on other sites

try

alert($find regular expression("So I am trying to match this email \"FunLearning@mac.com\" as mentioned in all other programs this works fine online testers included. When I use it in uBot 4 or 5 it only returns \"earning@mac.com\".","\\b[A-Za-z0-9_]+@[A-Za-z0-9_]+\\.[A-Za-z0-9]\{2,4\}\\b"))

 

Link to post
Share on other sites

I think all of my other programs all ignored case even though I never set up anything telling them to. I added case matching for the capitals and uBot picks up the match now. Seems I have been using EditPad++ with case matching off for like a year now.

 

So don't mind me, just being an idiot over here.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...