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

  • Home
  • SEARCH
  • 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 9163417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:26:33+00:00 2026-06-17T14:26:33+00:00

$string1 = 2_0_1AU13682.0AV+0.2 $string2 = 2_0_1AT+0.1CD13681.9 I have these 2 strings. How do I

  • 0
$string1 = "2_0_1AU13682.0AV+0.2"

$string2 = "2_0_1AT+0.1CD13681.9"

I have these 2 strings. How do I extract the 7 char decimal number from both of them?

From string 1 that would be 13682.0 and from string 2 that would be 13681.9.

The decimal number is always 7 characters and always in the form of xxxxx.x

  • 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-17T14:26:35+00:00Added an answer on June 17, 2026 at 2:26 pm

    Try doing this using regex and match operator :

    my $string1 = "2_0_1AU13682.0AV+0.2";
    my ($res) = $string1 =~ m/(\d{5}\.\d)/; 
    print $res, "\n";
    

    See Extracting-matches and Regexp-Quote-Like-Operators.

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

Sidebar

Related Questions

Say I have the following my strings.xml file: <string name=string0>Lorem</string> <string name=string1>ipsum</string> <string name=string2>dolor</string>
Consider this code: char *strs[] = { string1, string2, NULL }; char *ptr1 =
I have an array: $list = array('string1', 'string2', 'string3'); I want to get the
I have scraped titles from YouTube videos. Which I have reduced to strings similar
I have this code -(IBAction) generateFlashNow:(id)sender{ [textField resignFirstResponder]; NSString *string1 = textField.text; //NSString *string2
I have a dict: >>> some_dict {1: ['String1', 'String2', 'String3','String4' ], 2: ['String1_2', 'String2_2',
I have this code for Jaro-Winkler algorithm taken from this website. I need to
Consider: String string1 = "Hi there"; String string2 = "Hi"; String string3 = "Hi";
This is a followup to Multi-dimensional char array (array of strings) in python ctypes
I have a method which will return two strings in an array, split(str, :,

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.