I’m trying to find a way to remove some html tags with jit.str.regexp.
With [jit.str.regexp @re /(< .*?>)/ @substitute " "] I can remove the tags, but I have a problem with commas: commas split my text in many lists…
What is the magic formula to keep the commas ?
Replacing all commas by "backslash comma" ( [,] –> [,] ) ?
I made 3 mistakes:
1) the box message should be [Hello, the, world], not [Hello, the, world]…
2) I should replace comma by [\,] not [,]
3) the syntax in jit.str.regexp seems wrong: [@re /(,?)/] crashes Max, but [@re /(,)/] works. (With the Max object "regexp", I have no crash, the first returns no result, but the second works fine))
I’m not very good in perl, and I don’t know why the first expression is bad.
But the crash…!