Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Break up a string of text and variables
#1
Not Solved
Hi, I am looking at a table with many "columns" of data actually being just one cell that looks like it has many. Parts of that returned cell I need to make a variable.

So the first thing I need to do is to grab the variable items out of the sentence and then put the sentence back together and check it? Or should I check the 1st part of the sentence, a variable, the 2nd part of the sentence, the 2nd variable and the 3rd part of the sentence?

So here is an example of what I am trying to parse:

"WebTableTitleProduct :TypeOfProductExpiration :N/AOrder Status :Order Initiation Project Id :<variable number>Opportunity Id :N/ARequest Id :<variable number>Brand :N/ATerm :N/ACommitment :N/A"

Taken apart it would like this:
"WebTableTitle
Product :TypeOfProduct
Expiration :N/A
Order Status :Order Initiation
Project Id :<variable number>
Opportunity Id :N/A
Request Id :<variable number>
Brand :N/A
Term :N/A
Commitment :N/A"

Thanks for any help you can give me.
Reply


Messages In This Thread
Break up a string of text and variables - by csutter2002 - 03-15-2013, 10:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,974 09-13-2015, 12:06 AM
Last Post: ADITI1992
  How to retrieve specied string from text file nsuresh316 1 2,496 06-09-2015, 12:24 AM
Last Post: nsuresh316
  Replace a string in a word document with another string rekha.naik 8 15,583 11-14-2013, 12:58 PM
Last Post: pranikgarg
  where to declare variables?? ACCBAJPA 0 2,401 10-01-2013, 07:20 PM
Last Post: ACCBAJPA
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,752 08-13-2013, 08:37 PM
Last Post: excellentpawan

Forum Jump:


Users browsing this thread: 2 Guest(s)