2 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for Reverend Jim

For anyone who is having trouble with regular expressions, I suggest you have a look at [this site](https://regexper.com/#%5Cd%7B1%2C3%7D) by Jeff Avallone. It takes a regular expression in the native (cryptic) format and produces a visual display of the same expression. For example, ^[a-z0-9_-]{3,16}$ becomes ![Screenshot_(10).png](/attachments/large/3/8a654e76556ecc115d044b9d7626b810.png "align-center") and the pattern for …

8
337
Member Avatar for twiss

Hi all, I'm trying to match all PHP reserved keywords in a string, but this string also contains a bunch of \4 characters [i]between[/i] the letters. So, for example, if I have the string [ICODE]'f\4u\4n\4c\4t\4i\4o\4n@@@some other weird characters@@@'[/ICODE] and the array [ICODE]['abstract','and','array','as','break','case','catch','class','clone','const','continue','declare','default','do','else','elseif','enddeclare','endfor','endforeach','endif','endswitch','endwhile','extends','final','for','foreach','function','global','goto','if','implements','interface','instanceof','namespace','new','or','private','protected','public','static','switch','throw','try','use','var','while','xor'][/ICODE] and I want to make 'function' match '\4f\4u\4n\4c\4t\4i\4o\4n\4', …

0
113

The End.