Hook name with dot and number
Ok, I'd like to hook name which
a) contains a dot and number For instance: PHP Code:
PHP Code:
For instance: PHP Code:
|
Re: Hook name with dot and number
Use this regex pattern:
.*(\d\.|\.\d|\..*\.).* |
Re: Hook name with dot and number
Quote:
|
Re: Hook name with dot and number
Remove the last switch option in the pattern.
.*(\d\.|\.\d).* |
Re: Hook name with dot and number
Quote:
|
Re: Hook name with dot and number
One more thing. Can you give a hint how to hook chat message, which contains more than 4 digits (that are not in a row) using regex?
|
Re: Hook name with dot and number
I assume you don't know how to form regex patterns.
((^|\D)\d(?!\d)) Be sure to escape the ^ when you use it in the plugin. You will need to also count your matches and check if they are 4 or more. |
Re: Hook name with dot and number
Quote:
|
| All times are GMT -4. The time now is 03:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.