How to check EMBG (Unique Master Citizen Number) using regex

In this post, I will share my implementation of how to check if some number looks like EMBG or Unique Master Citizen Number. For those of you who are not aware what is EMBG (Unique Master Citizen Number), please check Unique Master Citizen Number . Long story short, it's a composition of 13 digits, where first 7 digits are representing date in format ddMMyyy, and for the rest of the digits please check the wiki link. The yyy are the last 3 digits of year. The last digit from the 13-digit composition is checksum number, and should be checked outside of regex checking. The following regex should be validating EMBG (Unique Master Citizen Number) for Macedonia, but can be modified to check Unique Master Citizen Number for the rest of exYu countries (except Croatia, which seems that has changed the format according to the wiki article). The regex is validating 20th and 21th century year. Also, it's aware of leap year, and validating 2902 in ddMM input, if applicable.
Here is the regex :

^(?:(?:(?:0[1-9]|1\d|2[0-8])(?:0[1-9]|1[0-2])|(?:29|30)(?:0[13-9]|1[0-2])|31(?:0[13578]|1[02]))[09]\d{2}|2902[09](?:[02468][048]|[13579][26]))4[1-9]\d{4}$

 

And the diagram for the syntax is following:


Here are some tests using powershell:


The usage of this regex can be various, starting from beginner code input testing, to some exchange transport rule or data loss prevention rules. 

Feel free to test, and have some fun.



130 comments:

  1. I love your content and the lessons you share with your readers. Every time I read a post how to write a dissertation methodology I feel like I am able to take advantage of this post.

    ReplyDelete
    Replies
    1. If You Experience Something Like ...: How To Check Embg (Unique Master Citizen Number) Using Regex >>>>> Download Now

      >>>>> Download Full

      If You Experience Something Like ...: How To Check Embg (Unique Master Citizen Number) Using Regex >>>>> Download LINK

      >>>>> Download Now

      If You Experience Something Like ...: How To Check Embg (Unique Master Citizen Number) Using Regex >>>>> Download Full

      >>>>> Download LINK Oa

      Delete
  2. Superslot or Thai home language is called super slot. We are an online slots provider, there are many slots games to choose from, play a lot on mobile phones, number 1, both free credit 50, 100, 150, 200 that can support both IOS and Android systems, easy to apply, have easy access to log. -in has a system to make a top-up transaction Withdraw money via automatic system 24 hours a day,

    ReplyDelete
  3. You've made some good points there. I looked on the internet for additional information about the issue and found most people will go along with your views on this website. สล็อต ฟรีเครดิต

    ReplyDelete
  4. for more info visit this link https://www.stelladatarecovery.com/email-migration/ost-to-office-365.php

    ReplyDelete
  5. Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards, weed for sale

    ReplyDelete
  6. You have outdone yourself this time. It is probably the best, most short step by step guide that I have ever seen. microaire cannulas

    ReplyDelete
  7. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work xprinter label printer

    ReplyDelete
  8. Now that’s an amazing post on the modern struggles faced by students while preparing the scholarly assignments. I definitely agree with you on the restraints you have mentioned. I think the best way to get rid of these obstacles is by hiring a reliable online Dissertation Writing Service with the portal such as that of the MyAssignmentHelpAU platform. The expert researchers, editors, proofreaders, and writers associated with our writing portal carry years of experience working in the writing sector and thus can easily develop any type of assignment for you within the shortest possible turnaround.

    ReplyDelete
  9. I really like your blog. It helped me a lot. Entire details were given with easy to understand words. I wish you the best of luck for your future endeavors
    hbo go activate
    Hbogo.com/activate

    ReplyDelete
  10. Use Assignment Help services to finish your work effectively. If you are facing issues in writing your academic papers, you must use an online source of expert help. It is quite obvious to pay someone to do my assignment seem difficult to you when you don’t have complete information about the service provider. So, it is good to dig out the full details of your selected service provider and pay the price as soon as possible.

    ReplyDelete
  11. We are providing essay help . You can reach out us now! we are providing this help since the past 10 years.

    ReplyDelete
  12. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work ultrasound skin scrubber

    ReplyDelete
  13. Nice blog, thanks for sharing with us this valuable information. I’m always read your blog for and I have got a lot of informative blog for this. by
    digitizing for embroidery machines

    ReplyDelete
  14. I am so grateful for your blog. That is a very valuable article for me. "How to check EMBG (Unique Master Citizen Number) using regex" this blog includes full detail. The usage of this regex can be various, starting from beginner code input testing, to some exchange transport rules or data loss prevention rules. If you have interested in the best USA VPS Hosting you can ask us for more features and services.
    Thanks for sharing...!!!

    ReplyDelete
  15. Global lactose market is highly fragmented and the major key players have used various strategies such as new product launches, expansions, agreements, joint ventures, partnerships, acquisitions, and others to increase their footprints in the market worldwide.

    Also read: acetic anhydride market | Tobacco Market


    ReplyDelete
  16. Thanks For Sharing Such An Interesting Article, It Is Really Worthy To Read. I Have Subscribed To You And From Now On I'll Check Your Profile Daily For Interesting Stuffs. 온라인카지노사이트

    ReplyDelete
  17. I must thank you for the efforts you’ve put in writing this blog. I am hoping to view the same high-grade blog posts from you later on as well. In fact, your creative writing abilities has inspired me to get my very own blog now ?? Thank you for the auspicious writeup. 카지노사이트링크

    ReplyDelete
  18. Glad to chat your blog, I seem to be forward to more reliable articles and I think we all wish to thank so many good articles, blog to share with us 온라인카지노사이트넷

    ReplyDelete
  19. Very great post. I just stumbled upon your blog and wanted to say that I have truly loved browsing your blog posts. In any case I will be subscribing on your feed and I hope you write again very soon! 바카라사이트닷컴

    ReplyDelete

  20. I really like you words and appreciate your article post. Really Cool please keep writing.
    Hitachi 1.5 ton 5 star price

    ReplyDelete
  21. I'm not big fan of regex, but the work your doing is outstanding giving us tutorials. Thank you so far by digitizing services :)

    ReplyDelete
  22. EMBLIX is a leading Digital Marketing Company in Hyderabad offering a wide range of services including Digital Marketing, SEO, Social media marketing, Google AdWords, Facebook ads, and website designing. We offer comprehensive and customized services for our clients. Emblix as one of the best and top most service-oriented Digital Marketing Company in Hyderabad and India. One of the best SEO companies in Hyderabad, strive hard to provide all-encompassing digital marketing services along with web design and development. Emblix’s extensive market experience and expertise in Digital Marketing helps clients in successfully managing data as a strategic asset.

    ReplyDelete
  23. Hello Dear, In my Company Falcon Digitizng I had brillient designer embroidery at very low price. So, IF you want then Join Falcon Digitizng to get more inforamtion.

    ReplyDelete
  24. EMBLIX is a leading Digital Marketing Agency in Hyderabad offering a wide range of services including Digital Marketing, SEO, Social media marketing, Google AdWords, Facebook ads, and website designing. We offer comprehensive and customized services for our clients. Emblix as one of the best and top most service-oriented Digital Marketing Company in Hyderabad and India. One of the best SEO companies in Hyderabad, strive hard to provide all-encompassing digital marketing services along with web design and development. Emblix’s extensive market experience and expertise in Digital Marketing helps clients in successfully managing data as a strategic asset.

    ReplyDelete

  25. This is because the best CBD producers are working with the FDA to ensure its safety. This means that if you research your supplier well, and buy on quality much more than just the price, you will get nothing but the safest, most pure CBD supplements available,청마담


    ReplyDelete
  26. Good morning!! I am also blogging with you. In my blog, articles related to are mainly written, and they are usually called . If you are curious about , please visit!!
    오피월드

    oworldsmewep

    ReplyDelete
  27. Whats Taking place i’m new to this, I stumbled upon this I’ve discovered It positively helpful and it has aided me out loads. I hope to contribute & assist other customers like its aided me. Great job.
    송송넷

    ReplyDelete
  28. Need custom term paper help? Students can now seek immediate assistance from experts who run a quality check on the term paper assignments of students to ensure the term papers are absolutely flawless, and non-plagiarized. The best part of hiring experts from SourceEssay is that students studying in London can get their term papers written by seeking term paper help London.

    ReplyDelete
  29. Need urgent help in writing your essays? SourceEssay essay helpers are there to assist you. You can reach out to us 24/7 through chats, calls and emails. We help you write absolutely flawless essays. We also get your essays proofread by subject matter experts to see if there is any scope for improvement and do the needful so that you don't have to go through rework. SourceEssay essay helpers are providing essay writing help for university students by experts.

    ReplyDelete
  30. I have been surfing online more than 3 hours as of late,
    yet I never discovered any attention-grabbing article like yours.
    It’s beautiful worth enough for me. Personally, if all site owners and
    bloggers made excellent content material as you
    probably did, the internet will probably be much more helpful than ever before. 경마사이트

    ReplyDelete
  31. I am reading a blog on this website for the first time and I would like to tell you that the quality of the content is up to the mark. It is very well written. Thank you so much. If you want to Change Roadrunner Email Password please contact our team for solution.

    ReplyDelete
  32. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man,Keep it up.
    인터넷경마

    magosucowep

    ReplyDelete
  33. it is in reality a correctly-researched content material and high-quality wording.
    I got correspondingly engaged in this fabric that I couldnt wait analyzing. i am impressed in the end your positioned it on and skillability. thank you

    english stories gk quiz app story minds

    ReplyDelete
  34. dashrath krit shani stotra in hindi saves from negative effect of shani sade sati mahadasha know history and significance.

    ReplyDelete
  35. I am so excited to tell you that you are at the right place, and you will find an expert writer to help you in completing your homework at Do My Homework Help. Our team of professionals consists of many writers who have knowledge and expertise in different fields of education. Be it Science homework or Business homework; our professionals are experts in handling any kind of homework. The professionals at do my homework for me Help are selected after a number of tests. We always allocate the best and most suitable writer to every homework.
    do my homework assignment

    ReplyDelete
  36. I'm so happy to finally find a post with what I want. casino You have inspired me a lot. If you are satisfied, please visit my website and leave your feedback.


    ReplyDelete
  37. Brother is one of the topmost brands best starter sublimation printer in the printer market. Learn more about their product offerings and special features to help you determine whether Brother is what you're looking for.

    ReplyDelete
  38. Ask us to do or Hire online Finance Assignment Help experts for your finance assignments, projects and homework solutions at affordable prices. Tips provided by our experts to students at the time of writing finance assignment - Know about the main areas of the topic.
    For more info- Get Assignment Help

    ReplyDelete
  39. Get professional help for your Auditing Assignment and finish it of within the deadline, only with the help of the best assignment experts.

    ReplyDelete
  40. Get an extremely fast and authentic MYOB Perdisco Assignment from my assignment expert from everywhere at any moment.

    ReplyDelete
  41. Thanks for sharing, Sample assignment has an experienced team of assignment experts who works with the motive to enhance the academic grades of students through assignment sample.

    ReplyDelete
  42. I'm extremely inspired along with your writing skills as neatly as with the format in your blog. Is that a paid subject or did you customize it yourself? Anyway stay up the excellent quality writing, it's rare to look at a great blog like this one today.. Circle Mirror

    ReplyDelete
  43. GreatAssignmentHelper.com assignment help services offer you flawless grades effectiveness at the most moderate rates. What's more, this is the fundamental motivation behind why you should exploit our assignment help. More than quite a while, we have been offering our projects to a great many understudies.

    ReplyDelete
  44. If You Experience Something Like ...: How To Check Embg (Unique Master Citizen Number) Using Regex >>>>> Download Now

    >>>>> Download Full

    If You Experience Something Like ...: How To Check Embg (Unique Master Citizen Number) Using Regex >>>>> Download LINK

    >>>>> Download Now

    If You Experience Something Like ...: How To Check Embg (Unique Master Citizen Number) Using Regex >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete

  45. This is a good time to make long term plans and it's timely.
    Have fun. I have read this post, and if you will excuse me, I would like to advise you on interesting topics or tips.
    You can write the following articles on this topic.
    I want to read more topics on this topic!
    english stories english short stories with moral value What is the factorial of 100

    ReplyDelete
  46. Technologistan is the popoular and most trustworthy resource for technology, telecom, business and auto news in Pakistan
    telenor balance check code

    ReplyDelete
  47. Hi, I am jhon ceena I am mobile app developer, It is an amazing blog thanks for sharing the blog. Frantic infotech provide the mobile app development such as an information about software development for customer service. Frantic infotech also provide the mobile app development. The development of advanced web applications is Orient Software’s specialty and we will successfully fulfill all your web application development requirements, from small-sized to wider-ranged projects.

    ReplyDelete
  48. This is the perfect webpage for everyone who hopes to understand this topic. You know a whole lot its almost tough to argue with you (not that I personally would want to…HaHa). You definitely put a brand new spin on a topic that's been written about for ages. Excellent stuff, just wonderful! SEO Company In Durgapur

    ReplyDelete
  49. This is such a very useful post. its very knowledgeable post. follow VPN for PUBG Mobilethis link for PUBG.

    ReplyDelete
  50. Your blogs are always interesting. Thank you for sharing helpful content with us.


    Punjab Assignment Help has a team of internal experts who are highly qualified and experienced in providing blackboard holmes login assignment help online to scholars at a reasonable price range.

    ReplyDelete
  51. Good way of describing, and good post regarding my subject
    personal loan
    loan

    ReplyDelete
  52. Appreciate the effort and information you have given in writing this article .
    online phone

    ReplyDelete
  53. Your Content is amazing and I am glad to read them. Thanks for sharing the Blog.this blog is very helpful information for every one.
    personal loan
    loan

    ReplyDelete
  54. Your Content is amazing and I am glad to read them. Thanks for sharing the Blog.this blog is very helpful information for every one.
    personal loan

    ReplyDelete
  55. Your blog is great. I read a lot of interesting things from it. Thank you very much for sharing. Hope you will update more news in the future. If you want to Fix QuickBooks Error Code 100 please contact QuickBooks team for instant help.

    ReplyDelete
  56. If you are wandering for economics assignment help, we've created a brand-new service just for your benefit. It mostly focuses on providing economics assignment assistance to students who have difficulty answering difficult issues. We have highly qualified writers having huge experiences and exposures to academia helping you with your economics homework assignments. Our website houses the services such as economics assignment help online for your benefit. The process is also simple; you need to send us your assignment copy and make a token amount deposit. We guarantee you complete, timely, plagiarism-free content that is enough to get you the marks you deserve.

    ReplyDelete
  57. Rathi Group of Pune , India brings to you EVERSURE - a scope of expendable clinical gadgets. Our plant is ensured with CE, ISO 13485:2016, GMP and ISO 9001:2015 accreditations. Our image guarantees you development, quality and dependability, guaranteeing you the best of solace and care.
    best cannula manufacturer in india
    iv cannula price in india
    surgical disposable products manufacturer in india

    ReplyDelete
  58. Aryaamoney Private Limited has been in the field of stock markets for more than 10 years at this point having master information in exchanging as well as investment instruments. It also offers one of the most incredible web-based stock exchanging courses which has been entrusted by thousands of individuals including a vast part of new traders and investors the same.
    technical analysis course online
    online technical analysis course

    ReplyDelete
  59. Osumare is an outcome driven computerized advertising organization and we are known as the best in our field of work.Osumare is a 9-year-old advanced promoting organization in Pune
    top 10 digital marketing companies in pune
    top digital marketing company in pune

    ReplyDelete
  60. taurus and aries friendship They just won't listen. It can be particularly harsh on their family and friends. Aries and Taurus Cusp People are Dominating.

    ReplyDelete
  61. Osumare is a 9-year-old advanced promoting organization in Pune with activity in a few other Indian urban communities of Delhi, Mumbai, Pune, Nashik, Gurgaon, Bangalore, Hyderabad And Chennai.
    best digital marketing agency in pune

    ReplyDelete
  62. Rathi Group of Pune , India brings to you EVERSURE - a scope of expendable clinical gadgets. Our plant is ensured with CE, ISO 13485:2016, GMP and ISO 9001:2015 accreditations. Our image guarantees you development, quality and dependability, guaranteeing you the best of solace and care.
    surgical disposable products manufacturer in india
    disposable medical devices manufacturers

    ReplyDelete
  63. Thank you for your post. I have read through several similar topics! However, your article gave me the right information
    best online stock trading courses

    ReplyDelete
  64. Let's get here the special and important information about nayanthara height

    ReplyDelete
  65. An understudy needs to remain with tremendous strain and the trouble here lies with the administration of their time. Assignment Help Qatar forward searches in aiding each such understudy who are out of luck. We will direct you and help you with the legitimate time usage abilities.

    ReplyDelete
  66. This is such a great stuff what I was looking for since last month I highly appreciate your effort toward this , but I let you know if you a student then we offers assignment help services online on various topic like law assignment help , Business Law Assignment Help and many Assignment topic at our Platform Great Assignment Help

    ReplyDelete
  67. I find this post significant for finding out about a striking end. Along these lines, you don't observe more terribly as you don't track down the beams of expectation for a superior arrangement. For what reason do you move to a great extent to execute the better homework help task assist arrangement with adjusting? All things considered, we don't take high charge for making an answer.

    ReplyDelete
  68. Our Assignment Help service increase the chances of getting the higher grades to 100% for the students who take our help. We have a good record of delivering the high quality paper content with the best paper solutions.

    ReplyDelete
  69. SGNCO Ltd. is the leading Indian enterprise, providing a plethora of metal scrap management services including metal scrap inspection and consultancy services.
    Pre shipment inspection certificate
    Largest scrap metal recycling companies
    Non ferrous scrap metal prices
    PSI pre shipment inspection

    ReplyDelete
  70. Thanks for sharing this post with the community! You can check out Today Panchangam Tamil on our website.

    ReplyDelete
  71. EMBG stands for the Unique Master Citizen Number. It is a unique identification number for every citizen in India. The EMBG number is composed of 15 digits, and is a unique number assigned to each citizen. The following regex will check the validity of an EMBG number: /^[0-9]{15}$/ If the number is valid, the regex will return true. Well if you want to learn more about regex or computing language you can take online classes and if you not interested in taking classes then we can solve your query like do my class for me and take your classes and you can just learn by watching videos

    ReplyDelete
  72. join in the fun of the game Shoot fish straight web. Deposit - withdraw. No minimum. pgslot เว็บตรง

    ReplyDelete
  73. Treasures of Aztec
    Mayan pyramid game that waits for you to win symbols in the legend that is the story สมัครสมาชิกสล็อต pg

    ReplyDelete
  74. The website opens a new trial mode. Play slots smoothly Along with bet credits distributed to players. สล็อต

    ReplyDelete
  75. With coming to see the content in the article today because we will take a formula that can make money really leave us to take you. sexybacarat

    ReplyDelete
  76. and online games And it has been developed to play. in the form of an online game which makes playing easier and more comfortable jili slot

    ReplyDelete
  77. to deliver entertainment fun and enjoy go with the game world online betting welcome superslot

    ReplyDelete
  78. Online games at any time online gaming that to be called It's a game that will make it possible. The most profitable as well as playing games that will be able to make money quickly slotxo

    ReplyDelete
  79. The Unique Master Citizen Number (UMCN) is a unique number assigned to each person in the country of Pakistan. It is a 10-digit number and starts with 9-1-1. The UMCN is the most important number in british assignment help. It is also known as the EMBG.

    ReplyDelete
  80. Piggy Bank Golden Pig Spinning 5 Reel Video Slot (3 Lines on Reels 1 and 2, 4 Lines on Reels 3, 4, 5 and pgslot

    ReplyDelete
  81. Our website definitely answers the most questions.
    What is the best website to spin on slots? slotxo

    ReplyDelete
  82. I want to say that this post is awesome, nice written and come with approximately all significant info. I'd like to look more posts like this. I read your whole blog, Your work is really good and inseparable, Thanks for sharing. startup news

    ReplyDelete
  83. บริการเกมสล็อตออนไลน์ปี 2022 เกมให้เลือกเล่นมากกว่า 1,000 เกมชุปเปอสล๊อต สล็อตออนไลน์ ซุปเปอร์สล็อต ซุปเปอร์สล็อต78

    ReplyDelete
  84. it will be able to come into play and enjoyment and in playing online games. And in full, of course, and if the players That is where there are doubts in the game pgslot

    ReplyDelete
  85. Deposit 10 get 50 including camp 2022 Free trial for all camps
    new slots web welcome pgslot

    ReplyDelete
  86. These grains are also packed with vitamins and minerals that are essential for the nervous system. pgslot

    ReplyDelete
  87. To ensure the best performance, you don't want to settle for any SMTP server service provider. After all, your business reputation could be on the line. If that were to happen, then it would be a disaster! With Digitalaka SMTP server, you can rest easy and communicate with as many emails as you want fast and efficiently.

    ReplyDelete
  88. getting free spins is a great chance to win huge prizes and in some games there are even free spins for sale which you can find. Buying pgslot

    ReplyDelete
  89. Instant bonuses just for signing up Real free withdrawal credit slots Includes all slots in one website amb

    ReplyDelete
  90. bet no less And today we are open for service, so don't miss out on coming to bet and win many prizes with us. Sign up for free! สล็อต

    ReplyDelete
  91. 11 BEST SHOPPING MALLS IN ATLANTA, GA FOR SHOPPING, FOOD, FUN, MOVIES WITH FAMILY & FRIENDS
    malls in Atlanta GA

    ReplyDelete
  92. 985Jili in betting, we have a guide to play the game for you, which will be a very good way to make money for many new gamblers who do not know how to win money. pgslot

    ReplyDelete
  93. Thanks great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative. I am really glad I have found this info.A good web site with interesting content, that is what I need. You have done a outstanding job! Online Coffee Dubai

    ReplyDelete
  94. Nice article, thanks for the information. It's very complete information. I will bookmark for next reference. Pretty cool post. It’s truly very nice and beneficial post.Thanks for sharing this with us!it is my first stop by. heavy detergent cleaning

    ReplyDelete
  95. just enter the number followed by only a few personal details. You can play and receive bonuses from us now. สล็อต

    ReplyDelete
  96. of the new generation Create a game that is fierce in Action and RPG games that are full of fun. pgslot

    ReplyDelete
  97. I want to try these aromas on a candle burner or aroma inhaler or even any other aromatherapy gel that gives you a scent. ฟุตบอลโลก 2022

    ReplyDelete
  98. This comment has been removed by the author.

    ReplyDelete
  99. The once peaceful city fell apart and was surrounded by screams and cries.welcome สล็อต

    ReplyDelete
  100. This comment has been removed by the author.

    ReplyDelete
  101. Winbig Slot, a web slot straight from here, will help you get the most secure in this era. convenient and fast in terms of services provided สล็อต

    ReplyDelete
  102. Choose a website that is easy to use. no hassle or complicated in any way Therefore, you must scold that well. each web site How to play? pgslot

    ReplyDelete
  103. receive a great value promotion for new members. Is to receive a bonus immediately 50% pgslot

    ReplyDelete
  104. Apcalis Sx Jelly 20mg from rsmenterprises is a viable medicine for erectile dysfunction in men. This prescription incorporates Tadalafil 20mg.
    Purchase Generic Cialis Jelly Cheap Price
    Contact : +91 92163-25377

    ReplyDelete
  105. In various forms that have been developed and modified according to the era, automatic deposit-withdrawal systems that increase convenience for players pgslot

    ReplyDelete

  106. This is an informative blog shared with your viewers. I appreciate your time and energy put to give us an astonishing write-up. I am impressed, keep it up I have considered this piece of information useful. Thank you so much for sharing. how to apply for custech post utme form

    ReplyDelete

How to check EMBG (Unique Master Citizen Number) using regex

In this post, I will share my implementation of how to check if some number looks like EMBG or Unique Master Citizen Number. For those of yo...