looking for RexExp pattern
Posted: Tue Oct 26, 2004 2:02 pm
I'm looking for a Regular Expression pattern which looks something like:
It should match the following ({$int} means an number between 1-6:
Both the start and the ending $int should be the same number.
That's the problem, previously i've always used patterns which replaced the $int with the numbers from 1 to 6, resulting in 6 patterns. I though I'd ask here if anyone knows how to make the start and ending $int required to be the same, or the pattern shouldn't match. The things which should be passed on is the $int and the text, but if the last $int also is passed, it won't matter.
Thanks in advance, I hope you understood
Code: Select all
\ї(ї0-9]{1})\](.*?)\ї/(ї0-9]{1})\]Code: Select all
ї{$int}]some textї/{$int}]That's the problem, previously i've always used patterns which replaced the $int with the numbers from 1 to 6, resulting in 6 patterns. I though I'd ask here if anyone knows how to make the start and ending $int required to be the same, or the pattern shouldn't match. The things which should be passed on is the $int and the text, but if the last $int also is passed, it won't matter.
Thanks in advance, I hope you understood