I have a textual comparison using the following regex:
([1-4]\d{3}/)?[5-7]\d{3}|\d*g
When a user saves new content and the rule is evaluated they are seeing the following error:
preg_match() [function.preg-match]: Unknown modifier ')' in /export/home/continuinged/sites/all/modules/rules/rules/modules/rules.rules.inc on line 175.
I was not having this problem when my regex was just:
[5-7]\d{3}|\d*g
The regex is valid as far as I can tell. It appears that this is an issue with the "/" before the closing ")"
Basically the text I'm comparing is a string of numbers that are either 1xxx,2xxx,3xxx, 4xxx, 5xxx, 6xxx, 7xxx, 3xxx/5xxx or 4xxx/5xxx and I need to match if there is any 5xxx, 6xxx, or 7xxx number in the string.
I appreciate the help.
Comments
Comment #1
mitchell commentedThank you for submitting a support request / issue for Rules 1. Sorry it was not attended to earlier; I hope you found the information you were seeking in another resource, such as the Rules Drupal 6 documentation.
Because it has been a while since it was first submitted, I'm closing it to clear up space. However, if you would still like to submit another support request or help answer others support requests, your efforts would be welcomed and appreciated.