Skip to main content
Sorry, my first answer wasn't quite correct
Source Link
Nav
  • 66
  • 4

Try:

((?<=^.*..)(DIMENSIONS:  \|))|( \| ORIGINDIMENSIONS: )|( ?\|? ORIGIN:$)|( ?ORIGIN: \| )

The question marks after each character make it optionalBut it's ugly..

Try:

.*(DIMENSIONS:  )(\| ORIGIN: ?\|? ?)

The question marks after each character make it optional

Try:

((?<=^...)(DIMENSIONS:  \|))|( \| DIMENSIONS: )|( ?\|? ORIGIN:$)|( ?ORIGIN: \| )

But it's ugly..

Sorry, my first answer wasn't quite correct
Source Link
Nav
  • 66
  • 4

Try:

.*(DIMENSIONS:  )(\| ORIGIN:) ?\|? ?)

The question marks after each character make it optional

Try:

.*(DIMENSIONS:  \| ORIGIN:) ?\|? ?

The question marks after each character make it optional

Try:

.*(DIMENSIONS:  )(\| ORIGIN: ?\|? ?)

The question marks after each character make it optional

Source Link
Nav
  • 66
  • 4

Try:

.*(DIMENSIONS:  \| ORIGIN:) ?\|? ?

The question marks after each character make it optional