Is it possible to apply filter based on a regular expression? What I had in mind was something like
(filter #"<+\p{Alnum}+>" ["abc" "<def>"])
to return
=> ["<def>"]
Thanks in advance for hints.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put your regex inside an anonymous function that tests matching to your regex. The general form would be:
Where REGEX is the regex that you’re interested in, and SEQUENCE is the sequence that you’re interested in. Trying your example,