---
title: "Discussion on \"Parsing '7 lb 4 oz' in JavaScript: Compound Weight Input\" | Hashnode"
description: "Discussion on \"Parsing '7 lb 4 oz' in JavaScript: Compound Weight Input\". A weight converter's smart input looks simple until you count the ways people write 'seven pounds four ounces' — here's the tokenizer, the traps, and the display contract."
url: "https://hashnode.com/posts/parsing-7-lb-4-oz-in-javascript-compound-weight-input/6af7ce271b2c63af931fc1d7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Parsing '7 lb 4 oz' in JavaScript: Compound Weight Input](https://toolkitloop.hashnode.dev/parsing-7-lb-4-oz-in-javascript-compound-weight-input?utm_source=hashnode&utm_medium=feed)

A weight converter's smart input looks simple until you count the ways people write 'seven pounds four ounces' — here's the tokenizer, the traps, and the display contract.

17h ago · 7 min read · toolkitloop.hashnode.dev  
Read the article

-   [#webdev](https://hashnode.com/tag/webdev)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#productivity](https://hashnode.com/tag/productivity)

## Written by

[bowen Tse](https://hashnode.com/@bowentse)

@bowentse

  
[View profile](https://hashnode.com/@bowentse)

Founder of ToolkitLoop (toolkitloop.com) — 30 free online tools that run 100% in your browser. No sign-ups, no uploads, private by design.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
