Sorry, this is probably a really dumb question but I have this file containing a set of equations. I'm trying to standardise some data sets and so have written a little script to search it using a regex. I want to find all the occurrences of ='s that do not have whitespace on either side. I can do it using the three regular expressions:
m/\S=\S/g m/ =\S/g m/\S= /g
However when I try to combine all of these into one regex as follows it stops working:
m/(\S=\S)|( =\S)|(\S= )/gI'm sure its a silly error but what am I doing wrong?
In reply to Rewriting Three Regexes as One by arunhorne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |