Replace is destroying line endings
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
-
geoffreykidd
- Posts: 35
- Joined: Thu Aug 02, 2007 8:50 pm
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
-
geoffreykidd
- Posts: 35
- Joined: Thu Aug 02, 2007 8:50 pm
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
Possessive quantifiers were introduced into Perl in version 5.10, released in 2007.
What does RegEx Buddy have to say about this version:
(?!^(?>[^“�\r\n]+|“[^“�\r\n]*�)*$)^.+
which uses an "independent subexpression", which is what lies behind a possessive quantifier and stops backtracking?
What does RegEx Buddy have to say about this version:
(?!^(?>[^“�\r\n]+|“[^“�\r\n]*�)*$)^.+
which uses an "independent subexpression", which is what lies behind a possessive quantifier and stops backtracking?
-
geoffreykidd
- Posts: 35
- Joined: Thu Aug 02, 2007 8:50 pm
-
geoffreykidd
- Posts: 35
- Joined: Thu Aug 02, 2007 8:50 pm
-
geoffreykidd
- Posts: 35
- Joined: Thu Aug 02, 2007 8:50 pm
Straight Quotes RegEx?
I've discovered I need to do the same gig as for curly quotes with straight quotes. Any suggestions? BTW, the curly quote regex is backed up on my systems. I occasionally look at it and mutter "My precious." 
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
-
geoffreykidd
- Posts: 35
- Joined: Thu Aug 02, 2007 8:50 pm