Websites, apps & code / Coding & debugging

Validate Malaysian phone and postcode input

Your form collects phone numbers in every format and you want to check and standardise them.

1Fill in your details

Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).

2Pick a variationWhere it is used

3Copy the prompt

I have many Malaysian phone numbers and postcodes in inconsistent formats and want to check and standardise them automatically.

Messy examples: 012-3456789, +6012 345 6789, 0123456789, 03-21234567, 6012-345-6789
Target format: Mobiles as +60123456789 and landlines as +60321234567
Where it is used: Give Sheets formulas or Apps Script, not Python.

Please:
1. First explain the usual rules for Malaysian mobile and landline numbers, such as mobiles starting with 01 and the 03 area code, and flag anything you are unsure about so I can verify.
2. Write the check and standardise logic as code or formulas.
3. Postcodes are five digits, so check those too.
4. Do not force-fix numbers you cannot judge; put them in a separate list for me to review.
5. Give me ten test cases, some valid and some deliberately wrong, to verify the logic.
Do not use real people's numbers as examples.

[Make it sound human]
- Explain in plain words; no pleasantry openers or empty summaries.
- Only necessary, short, practical code comments; the simplest working approach, no over-engineering.
- Interface text (buttons, hints, error messages) should sound like a person wrote it; no "seamless", "empower", "unlock".
[Quality] Code must run as is and handle common errors; tell me how to test it and confirm it works; ask first if a requirement is unclear; never put passwords or API keys in the code.

Paste it into ChatGPT, Gemini, Claude or Meta AI.

Test result

This one was not tested on its own. Uses in this category share the same structure, and we spot-tested several of them, for example: Explain what code does, Fix an error message

AI tools that suit this

  • Claude Suggested tool Free plan

    Strong at long documents, editing and code

  • ChatGPT Suggested tool Free plan

    The most widely used AI chat, for writing, questions and images

  • Gemini Suggested tool Free plan

    Google's AI; generates and edits images, works with Gmail and Docs

Recommendations only, not sponsored. Check each site for what the free plan includes.

This site is made by FullMark Tech

Want your own website, or your shop spreadsheets automated? FullMark Tech builds business websites and custom Excel tools.

Ask on WhatsApp See FullMark Tech services