Skip to content
Guest Big Announcement

CharlesProxy - Using Regex to match special character

Featured Replies

Hi guys,

I want to ask how can I use regex to rewrite the match on Charlesproxy.

The match body is something like:

{"match_id":"1233213","opponent_id":"JGASHG76512HGF","is_win":1}

so i use this regex:

{"match_id":"(.?[0-9]{1,})","opponent_id":"(.?[a-zA-Z+0-9]{1,})","is_win":\d}

 

now the problem is, I notice that because of the match value itself is already start with the special character of {"match_id"

the match value is using { already so charles showing an error like "Illegal Repetition" LOL

any idea how this can be solved?

Thanks!

 

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.