How do you put comments inside a Perl regular expression?
相关问题
- $ENV{$variable} in perl
- Improve converting string to readable urls
- Is it possible to pass command-line arguments to @
- Regex to match charset
- Regex subsequence matching
相关文章
- Optimization techniques for backtracking regex imp
- Regex to check for new line
- Allow only 2 decimal points entry to a textbox usi
- Running a perl script on windows without extension
- Comparing speed of non-matching regexp
- Can NOT List directory including space using Perl
- Regular expression to get URL in string swift with
- Extracting columns from text file using Perl one-l
Use the /x modifier:
Also see the first question in perlfaq6.
Also it wouldn't hurt to read all of perlre while you're at it.
Even without the /x modifier, you can enclose comments in (?# ... ):