由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - any way to use regex in Fortran?
相关主题
怎样解决fortran程序中的common块的问题匹配问题 (转载)
VC++: Module-Definition (.def) Files:装完boost之后还要再装REGEX吗?
帮忙!!! 需要比较两文件, 有包子相送 (转载)RegEx puzzle
remove a module from cvs[合集] regular expression for whitespace in path
damn, love vert.xCan someone help me a quick regex?
问个Python的问题要不要学习 scripting languages such as Python?
re一问from beautiful code
请教一个变态的regular expression 替换regex question
相关话题的讨论汇总
话题: fortran话题: regex话题: any话题: way话题: however
进入Programming版参与讨论
1 (共1页)
c****w
发帖数: 565
1
any lib or module? thanks!
k****z
发帖数: 550
2
use some script language to pre-process it and call fortran in backend.
that'll be a nicer combination.
c****w
发帖数: 565
3
sometimes, the code deals with a file with strings, which affects the
variable definitions. I used python to read file and deal with string with
regex very quickly. However, if doing with Fortran, it is quite consuming.
e.g. a line in file:
1_2_3, 3_4_5, 6_7_8
If fortran code reads it, the line is passed to array A. Each item is one
string. However, if i want 1st num in *_*_* to be stored in an array, 2nd
num in another array, and 3rd so on. I don't want to do it in "for" loop
with A(i)(1), A(i)
c****w
发帖数: 565
4
That's it. I just don't know whether there is a build-in way.
1 (共1页)
进入Programming版参与讨论
相关主题
regex questiondamn, love vert.x
any perl html parser to recommend?问个Python的问题
GCC TR1 实现regex 没?re一问
江湖救急请教一个变态的regular expression 替换
怎样解决fortran程序中的common块的问题匹配问题 (转载)
VC++: Module-Definition (.def) Files:装完boost之后还要再装REGEX吗?
帮忙!!! 需要比较两文件, 有包子相送 (转载)RegEx puzzle
remove a module from cvs[合集] regular expression for whitespace in path
相关话题的讨论汇总
话题: fortran话题: regex话题: any话题: way话题: however