fixed #21

- improve regex for identifying ids
  - will not pick up attributes that may have the hash symbol in them.