• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Regexp help

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    Originally posted by minestrone View Post
    The spaces comeout as 0xa0 if the come from a 'real' space and 0x20 if the come from a  

    I put the XML through JTidy to get the DOM.

    Never even know there were 2 types of space and the debugger clearly never knew the difference.

    Recon i'm jusy going to replace all the 0x20 to 0xa0s

    Cheers.
    Yup, 0xa0 (aka 160) is the non-breaking space. Therefore,

    Code:
    [\s\xa0]-[\s\xa0]
    should do what you want

    Comment


      #12
      That is how you lose 2 hours doing the most trivial of things that should be easy.

      Cheers.

      Comment

      Working...
      X