Category "preg-match-all"

Moving parts of {token} to the end of line based on condition

From a multiline input I want to move tokens if they're inside {} and match some number. Sample input # (811) (1485) [2756] {29} [555] {15} # (811) (1476) {20}

preg_match_all for atttach bbcode

I have two types of bbcode: [attach]1234[/attach] [attach=full]1234[/attach] $message = 'this is message with attach [attach=full]1234[/attach] I want to remov