The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Reg Expression Q: How to revere match literal string?
I want to search for line breaks, but excluding certain ones. eg.
I want to search for "abc\r\nABC" or "<abc>\r\n<ABC>"... ...but I do not want to include "<ul>\r\n<li>" or "</li>\r\n<li>" So what I need is to reverse match strings. A '^' in a character class only negates a single character, not a string. Any idea for me how to achieve this? Thanks. I could have some mental block if this turns out to be something very simple. |
#2
|
||||
|
||||
Negate a match with (^string)
|
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
Just want to report back.
What I wanted to do can be done using "lookforward" and "lookback". |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|