About 1,370,000 results
Open links in new tab
  1. React-Native TextInput validation using RegEx patterns/rules

    Apr 26, 2019 · React-Native TextInput validation using RegEx patterns/rules. As the tittle says I will show you how simple is it to validate a React-Native TextInput value using regular expressions aka...

  2. How to apply regular expressions in React-native?

    Apr 30, 2021 · How can you convert a generalized regular expression to a standard regular expression?

  3. Creating Custom Inputs for Regex Validation in React and React Native

    Jan 12, 2025 · In this article, we’ll explore how to create reusable custom input components with regex validation for React and React Native, using examples like phone numbers, credit cards, and CVCs.

  4. using REGEX on textInput in react native - Stack Overflow

    Feb 12, 2020 · Have you tried wrapping your regexp in new RegExp() For example: const nameRegex = new RegExp(/^[a-z ,.'-]+(\s)([a-z ,.'-])+$/i); if (nameRegex.test(inputValue)) { doSomething(); }

  5. Regex in ReactJS - Online Tutorials Library

    Learn how to use Regular Expressions (Regex) in ReactJS for effective string manipulation and validation.

  6. javascript - Regex in React email validation - Stack Overflow

    Dec 27, 2016 · Instead of using a regex, I suggest using a library called yup. You can use as as follows: import * as Yup from 'yup'; // here you can add multiple validations per field const EmailSchema = Yup.object().shape({ email: Yup.string().required('This field is mandatory').email('Enter a valid email'), });

  7. Regex Magic in React: Unleashing the Potential of Pattern Matching

    Jun 9, 2023 · In this article, we will explore how to leverage regex in React and provide practical examples along the way. Regex is a sequence of characters that defines a search pattern. It allows you...

  8. How to Validate Text from Text Inputs in React Native Apps using Regex

    Apr 19, 2023 · Today I'm showing you how I would approach validating text input from users using regex to test that text is valid for what data you're expecting. I will also show you how to create a component...

  9. How to Get Only Numeric Values in TextInput Field in React Native

    Jan 11, 2025 · To restrict TextInput to numeric values only, React Native provides properties like keyboardType="numeric" and validation checks to ensure users input numbers. In this approach, regular e­xpressions are utilized to filte­r out non-numeric characters from the input te­xt.

  10. Creating Custom Inputs for Regex Validation in React and React Native

    Jan 12, 2025 · In this article, we'll explore how to create reusable custom input components with regex validation for React and React Native, using examples like phone numbers, credit cards, and CVCs. Why Custom Inputs? Using custom inputs lets you: Standardize validation logic across forms. Enhance the user experience with input masks and clear error messages.

  11. Some results have been removed
Refresh