Benjamin Buxbaum: Regex matcht nicht alles, was gematcht werden soll

Beitrag lesen

Hi!

/
(\\*)
({?)
$
(
 ([a-zA-Z_\x7f-\xff][\w\x7f-\xff]*)
 (->[a-zA-Z_\x7f-\xff][\w\x7f-\xff]*)?
 (
  [
   [\w\x7f-\xff]+
  ]
 )*
)
(
 }?
)
/

Muss die schließende ] eventuell escaped werden?

mfG

--
Selfcode: ie:} fl:{ br:> va:) ls:< fo:( rl:? n4:# ss:| de:] js:| ch:? sh:( mo:? zu:)
"And all those exclamation marks, you notice? Five? A sure sign of someone who wears his underpants on his head."
(Terry Pratchett)