Skip to main content

Command Palette

Search for a command to run...

Regular Expressions

Published
1 min readView as Markdown
M
Software Engineer with 5+ years of experience designing and building clinical-grade systems, including Electronic Medical Records (EMR), medical imaging tools, and scalable backend infrastructures. I specialize in developing end-to-end healthcare solutions using Python and Django REST Framework, with a strong focus on clinical workflow automation, multilingual systems, and high-performance data handling. My work includes building modular EMR platforms, prescription engines, and hybrid search systems for accurate medical data retrieval. I have also worked on medical imaging applications, integrating Python-based tools with analysis modules to support diagnostic workflows and image-based decision-making.

Question: Validate if a user input string is alphanumeric. The given string is not nil/null/NULL/None, so you don't have to check that. The string has the following conditions to be alphanumeric:

At least one character (""is not valid)
Allowed characters are uppercase / lowercase Latin letters and digits from 0 to 9
No whitespaces/underscore
const REGEXP = /^[a-zA-Z0-9]+$/

function alphanumeric(string){
  //your code here
  return REGEXP.test(string);

}

More from this blog

eikon

17 posts

Hello! I am Monyuy a software engineer. A day in my life consists of prepping web art, fixing front end bugs, adding API endpoint, database design and blogging.