GBP & UTF8 & Relgular Expressions

I needed to use GBP symbol in a regular expression. I thought it was simple, but realized my keyboard doesn’t have that symbol. Then, after a bit of research, found that I could use utf-8 code of GBP (\u0093) in the regular expression. Based on the documentation for java.util.regex.Pattern, I tried it and it worked as desired.

Advertisements

1 Comment

Filed under Tech - Tips

One response to “GBP & UTF8 & Relgular Expressions

  1. Bush

    Your site is perfect!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s