Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

valid filename regex

/^(?!.)(?!com[0-9]$)(?!con$)(?!lpt[0-9]$)(?!nul$)(?!prn$)[^|*?:<>/$"]*[^.|*?:<>/$"]+$/

Must not be empty.
Must not start with .
Must not be com0-com9, con, lpt0-lpt9, nul, prn
Must not contain | * ?  : < > $
Must not end with .
Comment

PREVIOUS NEXT
Code Example
Javascript :: promises basic structure 
Javascript :: How to parse POST requests with express nodejs 
Javascript :: javascript replace <br with n 
Javascript :: tone mapping three js 
Javascript :: js deep copy array 
Javascript :: allow only letters in div javascript 
Javascript :: play video in fullscreen 
Javascript :: change font js 
Javascript :: jquery add div element 
Javascript :: how to trigger events when the document loads in js 
Javascript :: check if element is visible jquery 
Javascript :: import stripe in es6 
Javascript :: load script js 
Javascript :: loopback find or create 
Javascript :: JavaScript Regex - Remove Whitespace from Start and End 
Javascript :: js queryselector radio checked 
Javascript :: js date format dd/mm/yyyy 
Javascript :: get date google apps script 
Javascript :: how to differentiate latitude and longitude from same value in different textbox 
Javascript :: how to repeat prompt with the same variable in javascript 
Javascript :: react native outside area view color 
Javascript :: p5.js script tag 
Javascript :: javascript get date midnight today 
Javascript :: assert.match() nodejs 
Javascript :: javascript remove element from array 
Javascript :: ignores _id mongoose schema 
Javascript :: react router add fallback to catch all 
Javascript :: react get data attribute from element 
Javascript :: deploy create react app pm2 
Javascript :: canvas change line color 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =