REGEX-Escape for: if [ "$BOOT" != nfs ] && [ "$IFDOWN" != none ]; then

Your Input:
Result, the escaped string:
if \[ "\$BOOT" \!\= nfs \] && \[ "\$IFDOWN" \!\= none \]; then

What must the escaping look like for:
if [ "$BOOT" != nfs ] && [ "$IFDOWN" != none ]; then

The excaped text for use in a regex is:
if \[ "\$BOOT" \!\= nfs \] && \[ "\$IFDOWN" \!\= none \]; then


Ads