What Could Be RegExp For?
Regular Expressions
2
Posts
2
Posters
4
Views
1
Watching
-
What can be the RegEx for matching all spaces in quotes but not quotes.. Example: "This is testing text" My RegEx: (?<=\")\s+(?=\") The above RegExp is not matching all spaces..
The
\s+
in that regex will only match a single string of one or more consecutive whitespace characters, not "all spaces" So your regex would match"This test"
or"This test"
but not"This is testing"
There are lots of online regex builders and analysers, which I suggest you seek out.Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012