I need to match the abcd in text which may contain:
abcdssss
ffffabcdksdks
AbCdfdjb
aBCd
In a nutshell any match is qualified which can match caps or no caps with the text with other text or as a seperate word
EDIT
Environment : PHP
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is your solution for PHP:
It finds
abcdanywhere, including as part of a word, as you asked for. It is also case-insensitive due to theisuffix.