Forum Discussion
MSZ
Nimbostratus
Apr 30, 2018RegExp Writing
Kindly elaborate the following Regular expression.
How it will work?
(.)+.(xlsx|docx)
murali_125469
Nimbostratus
Apr 30, 2018Basically what its doing is its looking for anyname with .xlsx or .docx
Explanation:
() --> Groups multiple tokens together and creates a capture group for extracting a substring or using a backreference.
(.) -->Matches any character except line breaks + -->Matches 1 or more of the preceding token. | -->Acts like a boolean OR. Matches the expression before or after the |
If this helped , please mark as correct answer !
Thank You Murali
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects