Link to home
Create AccountLog in
Avatar of ambuli
ambuliFlag for United States of America

asked on

Regular Expression to filter string

Hi Experts,

I have a list of string and I want to find the strings that does not contain a substring.

for example,

string123.opt.userID
string1234.userID
string12345.opt.userID
string12.userID

I want to get a list of items that does not have the strings with .opt.
So, my list would be string1234.userID, string12.userID

I just need a regular expression that can provide it.  thanks.
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer