Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regex exmaple? #891

Open
brucejcw opened this issue Oct 14, 2016 · 4 comments
Open

regex exmaple? #891

brucejcw opened this issue Oct 14, 2016 · 4 comments

Comments

@brucejcw
Copy link

@brucejcw brucejcw commented Oct 14, 2016

is there any regex example handling with string ?
eg:

{% if /.../.test('somestring') %}

how can i use regex to validate string

@vecmezoni
Copy link
Collaborator

@vecmezoni vecmezoni commented Oct 14, 2016

@brucejcw
Copy link
Author

@brucejcw brucejcw commented Oct 14, 2016

@vecmezoni thanks

@brucejcw brucejcw closed this Oct 14, 2016
@brucejcw
Copy link
Author

@brucejcw brucejcw commented Dec 27, 2016

@vecmezoni any way to create dynamic regex ? like new RegExp(m, 'g')

@brucejcw brucejcw reopened this Dec 27, 2016
@perrygovier
Copy link

@perrygovier perrygovier commented Feb 15, 2019

The fact that you have to prefix with r should be added to the replace filter documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants