I have an issue with formatting an IO String, and don't know how i could do that.
For example:
tryA (arrIO (\s -> hPutDocument (\h -> hPutStrLn h
=<< readProcess "grep" ["-n",s,"camera2.owl"] "")))
As it was mentioned on my post asked today
Here, i figured out that my String s
has a lot of things which i don't need it.
For example, normally i have that String on s
:
<owl:Class rdf:about="http://www.xfront.com/owl/ontologies/camera/#SLR"> </owl:Class>
And what i want , it is to delete the spaces available after >
and remove the close tag which is </owl:Class>
How could i do that on haskell ? I must do the transformation before it is sent to my grep function.
P.S. :
Maybe i could use some regular expressions with a type <.>
and after that he removes it. (Doing the lesser match of course,or it will give me the full match)