case specifc words from string?
I need to find the words Dwg, DWG, dwg and those with dot and same goes to PDF.
/(.[Dd][Ww][Gg])|(.[Pp][Dd][Ff])/
This is what I did. This also find "dpdf", thats not I wanted.
(\.[Dd][Ww][Gg])|(\.[Pp][Dd][Ff]) try this You are using "." without "\" which means any char can be placed there. Use "\" before .
That find only the words with dot. I need also without dot.
/pdf|dwg/i
Обсуждают сегодня