# react-native-custom-regex

> This package provide all custom regex by just giving the type.

Latest version **1.0.6** (published 2023-07-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-custom-regex
pnpm add react-native-custom-regex
yarn add react-native-custom-regex
bun add react-native-custom-regex
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2023-07-03 |
| First published | 2023-06-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | navdeep garg |
| Maintainers | navdeepgarg91 |
| Keywords | custom, regex |

## Links

- npm: https://www.npmjs.com/package/react-native-custom-regex
- npm.io page: https://npm.io/package/react-native-custom-regex

## Recent versions

- 1.0.6 (latest) — 2023-07-03
- 1.0.5 — 2023-06-30
- 1.0.4 — 2023-06-30
- 1.0.2 — 2023-06-30
- 1.0.1 — 2023-06-30
- 1.0.0 — 2023-06-30

## README

# Usage of Different regex functions which returns boolean - true or false if test passes.

- 1.Run `npm i react-native-custom-regex --save`
- 2.`import { onlyNumerics, onlyAlphabets, onlyNumberAndDots, exactlyOneNumeric } from 'react-native-custom-regex'`

## Getting started

1. **atLeastOneAlphabet("a123b")** - returns boolean if it contains atleast one Alphabet.

2. **atLeastOneNumeric("922")** - returns boolean if it contains atleast one Numeric.

3. **checkDateFormat("DD-MM-YYYY or DD-MM-YY")** - Check Date Format: DD-MM-YYYY or DD-MM-YY and return boolean.

4. **checkPhoneNumberRegex("9676366633")** - returns boolean if it contains PhoneNumber characters.

5. **exactlyOneNumeric("1")** - returns boolean if it contains exactly One Numeric only.

6. **onlyAlphaNumeric("123")** - returns boolean if it contains only Alphabets and Numerics.

7. **onlyAlphabets("string")** - returns boolean if it contains only Alphabets.

8. **onlyAlphabetsAndSpaces("string1 string2")** - returns boolean if it contains only Numeric and Spaces.

9. **onlyEmail("str@str.str)** - returns boolean if it passes email test: str@str.str

10. **onlyNumberAndDots("123 or .")** - returns boolean if it contains only Numeric and Dots.

11. **onlyNumerics("123")** - returns boolean if it contains only Numerics.

12. **onlyPassword("Aa@123")** - returns boolean if it contains Password with combination of at least 1 uppercase, 1 lowercase and 1 special character

---
_Source: https://npm.io/package/react-native-custom-regex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
