parse a line to get numbers

JohnnyF

I have lines that look like this:

tmp='bla bio = 773 node = 6 bib=21 data=118 pewp= 120'

I need to get the first and last numbers - 773,120 I tried

sscanf(tmp,' %*s %*s %*s %f  %*s %*s %*s %*s %*s %*s %f')

But without any luck.. The numbers 6 21 118 are random the rest are consts

JohnnyF

i found an easy way

temp=sscanf(tmp,'bla bio = %f node = %f bib=%f data=%f pewp= %f')
tmp(1)=temp(1)
tmp(2)=temp(5)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Parse command line args as numbers in Racket

From Dev

Parse Python source for class/function line numbers

From Dev

How to get folds line numbers

From Dev

Get line numbers with AddressSanitizer output?

From Dev

Grunt: get line numbers for errors

From Dev

How to get numbers of line with sql?

From Java

How to get the line of a token in parse rules?

From Dev

python parse and get more input from line

From Dev

Parse Windows Command Line Output To Get PIDs

From Dev

How to parse/grab/get one source line?

From Dev

Get .txt file and parse it by new line or comma

From Dev

Possible to get line numbers or stack traces in Screeps?

From Dev

Get full stack trace with line numbers

From Dev

get non-matching line numbers python

From Dev

Is there a way to get line numbers for tslint errors?

From Dev

Get only numbers from line in file

From Dev

Get line numbers of words present in a file

From Dev

How to get Line Numbers in Console Outputs in Elixir

From Dev

Get output numbers to line up in columns?

From Dev

Is there a way to get line numbers for tslint errors?

From Dev

Possible to get line numbers or stack traces in Screeps?

From Dev

Get line numbers of words present in a file

From Dev

How can I parse the microcode (ucode) in iwlwifi to get the version numbers?

From Dev

Parse through list in Scheme and get the sum of all the numbers

From Dev

Using Python Parse to get a string of numbers, letters, whitespace, and symbols

From Dev

How do I get line numbers in PL/SQL Developer?

From Dev

Get Line Numbers From File.ReadAllLines() Result

From Dev

Get the Query for Line Numbers from the Sales Order Form in Oracle EBS

From Dev

Get line-numbers in which a certain word/text occurs

Related Related

  1. 1

    Parse command line args as numbers in Racket

  2. 2

    Parse Python source for class/function line numbers

  3. 3

    How to get folds line numbers

  4. 4

    Get line numbers with AddressSanitizer output?

  5. 5

    Grunt: get line numbers for errors

  6. 6

    How to get numbers of line with sql?

  7. 7

    How to get the line of a token in parse rules?

  8. 8

    python parse and get more input from line

  9. 9

    Parse Windows Command Line Output To Get PIDs

  10. 10

    How to parse/grab/get one source line?

  11. 11

    Get .txt file and parse it by new line or comma

  12. 12

    Possible to get line numbers or stack traces in Screeps?

  13. 13

    Get full stack trace with line numbers

  14. 14

    get non-matching line numbers python

  15. 15

    Is there a way to get line numbers for tslint errors?

  16. 16

    Get only numbers from line in file

  17. 17

    Get line numbers of words present in a file

  18. 18

    How to get Line Numbers in Console Outputs in Elixir

  19. 19

    Get output numbers to line up in columns?

  20. 20

    Is there a way to get line numbers for tslint errors?

  21. 21

    Possible to get line numbers or stack traces in Screeps?

  22. 22

    Get line numbers of words present in a file

  23. 23

    How can I parse the microcode (ucode) in iwlwifi to get the version numbers?

  24. 24

    Parse through list in Scheme and get the sum of all the numbers

  25. 25

    Using Python Parse to get a string of numbers, letters, whitespace, and symbols

  26. 26

    How do I get line numbers in PL/SQL Developer?

  27. 27

    Get Line Numbers From File.ReadAllLines() Result

  28. 28

    Get the Query for Line Numbers from the Sales Order Form in Oracle EBS

  29. 29

    Get line-numbers in which a certain word/text occurs

HotTag

Archive