Regex expression - single quote without comma -


i need regex expression find single quotes not have comma neither right before nor right after it. single quotes should not first character or last character in string , should have alphanumeric character on each side

example "jane's book" detect while "'apples','oranges'"

can help?

you can use regex lookarounds:

(?<=[a-za-z0-9])'(?=[a-za-z0-9]) 

regex demo


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -