Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9216437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:25:02+00:00 2026-06-18T02:25:02+00:00

I am really new to regular expression. Can you please tell me what will

  • 0

I am really new to regular expression. Can you please tell me what will be regular expression to finde Amazon fees in following string. so it give me list of float.

 private static List<float> GetAmazonFees(string text)
 {
      //Regular expression to fine list of fees
 }

.

Order ID: 102-8960168-7248227

Please ship this order using Standard shipping.

Ship by: 12/19/2012
Item: Ridata 8GB Class 10 SDHC Card - Secure Digital High Capacity -
Lightening Series - RDSDHC8G-LIG10
Condition: New
Condition note: This item is sealed and brand new! SHIPS IN ONE BUSINESS DAY
Listing ID: 1213M39KPDB
SKU: 7S-5JMI-HO98
Quantity: 1
Order date: 12/17/2012
Price: $8.60
Amazon fees: -$1.14
Shipping: $4.49
Your earnings: $11.95Ship by: 12/19/2012Item: RiDATA Lightning Series 16GB Secure Digital High-Capacity (SDHC)Condition: NewCondition note: This item is sealed and brand new! SHIPS IN ONE BUSINESS DAYListing ID: 1204MRSEY95SKU: HJ-EYF8-EZVRQuantity: 1Order date: 12/17/2012Price: $15.97Amazon fees: -$1.78Shipping: $4.99Your earnings: $19.18- - - - - - - - - - - - - - - - - - -NEXT STEPS FOR THIS ORDER:1) Print the packing slip:Log into your seller account and go to the Order Details page for thisorder: https://www.amazon.com/manageorderdetails?orderID=102-8960168-7248227.Click "Print order packing slip" next to the order number at the top of thepage.2) Buy shipping (optional):You may ship the item using any carrier and method you prefer. Want toavoid a trip to the post office? Click "Buy shipping" at the bottom of theOrder Detail page to purchase and print shipping labels from your home oroffice. Delivery confirmation is also available. To learn more, search"shipping" in seller Help.3) Confirm shipment:Click "Confirm shipment" at the bottom of the Order Detail page and entershipping details. Once confirmed, we'll charge the buyer, notify them theirorder has shipped, and transfer the order payment into your seller account.To lea 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:25:03+00:00Added an answer on June 18, 2026 at 2:25 am

    This is fairly straightforward. The regex you need will be something like Amazon fees: (\-?)\$(\d+\.?\d*)\D.

    So using this we can do:

    var matches = Regex.Matches(INPUT_STRING,@"Amazon fees: (\-?)\$(\d+\.?\d*)\D",RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Multiline);
    

    This gets us the list of all matches. We then process it out for the floats:

    var fees = new List<float>();
    
    foreach(Match match in matches) {
       float fee = 0;
    
       if (match.Groups[1].Value == "") {
           fee = float.Parse(match.Groups[2].Value);
       } else {
           fee = float.Parse('-' + match.Groups[2].Value);
       }
       fees.Add(fee);
    }
    

    I capture the negative, although we could assume all fee’s are negative I’d rather check for it and return the correct negative float.

    I think this should give you what you want. I’m overlooking a lot of error checking here, but you get the idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using regular expression first time, and I really amazed! well, new discovery
I am wondering if there is a specific regular expression I can write to
<html><body><script> var matches = /(\w+)(\s*(\w+))?/.exec(aaa); alert(matches.length); alert(typeof(matches[3])); </script></body><html> I'm really new to regular expressions,
I am new to regex . I am looking for regular expression which matches
I am new to using regular expression in python. I am having trouble figuring
I'm having trouble building a regular expression because I'm really a noob to the
I'm trying to figure out the regular expressions for the following and can't seem
im really new to flash, how do i go about creating a variable which
im really new to linq-to-SQL so this may sound like a really dumb question,
I'm really new to android and I got an issue that I don't clearly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.