Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

609.Advanced search and replace -- How to convert Roman number to Arabic number automatically?

User: editor -- 2010-09-10          << 608  610 >>
Hits: 2907
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to convert Roman number to Arabic number automatically?
Input Sample:
VI 
VII 
IXX 
XX 
MI
Output Sample:


IXX(not a valid number) 
20 
1001
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open replace window 
* in 'search for pattern', enter: 
 
* in 'replace with pattern', enter: 
 
* in 'if', enter: 
 
* click 'Advanced' tab, fill following in 'run following at the beginning of replace' entry: 
 
3. click 'Replace', done!
Download Script:  scripts/609.rst.zip

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to convert all the phrases to the Abbr automatically? (71%)
How to batch convert arabic number to roman numbers automatcially? (67%)
How to find the 5 largest number from a text file automatically? (60%)
How to capitalize the first words of each sentence automatically? (58%)
How to replace a number with another number in same text file? (57%)
How to add some text before each paragraph automatically? (56%)
How to split every file in a directory automatically? (56%)
How to remove/delete ending spaces of all lines automatically? (56%)

Check Demo of Advanced search and replace
Keywords:
roman  arabic  convert roman number  foreach  rar  500  return  automatically  digit  dig  search and replace arabic  split 1000  return tab  split 100  convert number  convert text to number  convert to number  replace with return