Comments (4)
This is expected behaviour (at least in JS). I've updated the documentation to be reflect this better. The following will be in the next update:
When the multiline flag is enabled, beginning and end anchors (^ and $) will match the start and end of a line, instead of the start and end of the whole string.
Note that patterns such as /^[\s\S]+$/m may return matches that span multiple lines because the anchors will match the start/end of any line.
from regexr.
Ok, I will add [^\n] until the update arrives :P
Thanks for clarifying!
from regexr.
Just to be clear, the update is just a change to documentation, the functionality will remain the same because that's just how RegEx works (at least in JS).
from regexr.
Ah I see what you mean now, thanks again.
from regexr.
Related Issues (20)
- PCRE engine matches รค (ASCII char 228) to other diacritics
- Separator not working for list tool for PCRE patterns
- Issue with Regex Tool's Lack of Support for Lazy Quantifier "{,M}" Without Lower Limit HOT 2
- Site is down with "connection timed out, Error code 522" HOT 1
- Support for `v` (`unicodeSets`) and `d` (`hasIndices`) flags HOT 3
- Support for named backreferences `\k<...>`
- i love you, whoever made this.
- \n not working as expected HOT 1
- Global indicator not working in tests HOT 1
- When nearby matches are present, hard to see visually.
- full match not working in test
- can't build it? HOT 1
- Hide Text/Tests pane
- Explain PCRE modes like `(?i)` more
- Feature request: Paste lines to be used for tests HOT 2
- Inconsistent / broken pattern matching for unicode letters in PCRE mode
- Feature Request: Change default author
- Cannot delete Pattern created by '[anonymous]'
- [Feature Request] Import multiple tests using a file text or a csv list or json list...
- Chromium browsers cannot append text after space character HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from regexr.