|
[130 | wph] | 132 | abc | b3d
How do you match this string of characters? Claim:
The characters enclosed in [] must start with, followed by several strings separated by "|"!
I don't know how to make [] this is always the beginning, the others can match! I did this:
([[] [-~] + []]) ([|] [-~] *)
Although this can match the string of characters above, but encountered this:
1a2b | [130 | wph] | 132 | abc | b3d, it will also show the matching results, but I want to keep "[]" always on top, I use the\b form-([[] [-~] + []]\b) ([|] [-~] *) doesn't work! What's going on? |
|