textconvert
Version:
Public library to convert text into many conventions and formats.
18 lines (17 loc) • 484 B
JavaScript
/**
* Make a regex list to split words based on these patterns
*/
const regex = {
name: 'Regex List',
description: 'Regex patterns list to be used in functions',
values: {
upperCase: /[A-Z]/g,
upperCaseKeepLetter: /(?=[A-Z])/g,
lowerCase: /[a-z]/g,
lowerUpperCase: /[A-Za-z]/g,
nonAlphabetic: /[^A-Za-z]/g,
nonAlphaTest: /[^A-Za-z]/,
punctuation: /[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/g,
},
};
export { regex };