quick reg exp question
Author
Discussion

jago

Original Poster:

247 posts

249 months

Thursday 21st September 2006
quotequote all
can't remember how to do a not... i.e. i want to match against everything that doesn't match ^XYZ

googling at the moment, but keep drawing blank. i'm sure it's very simple...

Edited by jago on Thursday 21st September 12:35

Plotloss

67,280 posts

300 months

Thursday 21st September 2006
quotequote all
Depends on the language

Usually ! or <>

jago

Original Poster:

247 posts

249 months

Thursday 21st September 2006
quotequote all
Plotloss said:
Depends on the language

Usually ! or <>


agree for a language, but don't think i've seen those in any regular expresion definitions. ^[^XYZ] is almost doing the job. edit, got it: ^[^XYZ].*

Edited by jago on Thursday 21st September 12:46