in reply to how to do match www.jkghfdjbh.org from $li?
- In order to match a literal dot, use \. or [.]
- As you have the /i applied to your regex, [a-z] and [A-Z] are really the same, so you only need one of them.
- In order to match one or more characters, use [a-z]+
- In order to match exactly three characters like org, use braces like [a-z]{3}