I have following regular expression in c# (ship|sub)(?<!^(shipment|subway)$)
which is used to check if the given data contains ship or sub when the data is not shipment or subway.
I want to write the same expression in java script. I tried several options with javascript negetive look behind.. But they are not serving my purpose: for an example: when i give shipment to the regular expression, it should not return ship(as i am excluding shipment in regular expression) .. however, when i give membership, it should give ship and match result true.
Could any one of you please help me .