hello, I want to combine this two regex expression, that work very good single:
WORD_1[\s\S]?WORD_2[\s\S]? (match everything from word_1 to word_2 )
and
s/^\s+|\s+$ (remove empty spaces)
I try to combine those 2 expression by putting the sign | between them, like this:
WORD_1[\s\S]?WORD_2[\s\S]?|s/^\s+|\s+$
This will work, but only if I make the operation twice. I need to make the search operation, and replace, at once. Can anyone help me?