How to remove built-in regex characters in the output of "fromRegExp" #3663
Unanswered
hungdao-testing
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
When calling the method
faker.helpers.fromRegExp(/^[01][0-9]{9}$/), the output is random string along with 2 characters "$" and "^".I could remove them (
$, ^) by using js method.replace(); but I would like to know that is there any configuration of fakerjs could support itBeta Was this translation helpful? Give feedback.
All reactions