I'm brand new to regular expressions. I've read http://www.gammon.com.au/mushclient/regexp.htm and I'm having trouble visualizing what I need. How can I ignore the white space and simplify this to not worry about spacing?
I am extracting the data from the "ID pearl" command on aardwolf. Here is an example.
<trigger
enabled="y"
match="^\| Type \: (.*?) Level \: (.*?) \|$"
regexp="y"
script="capture_type_level"
>
</trigger>
I am extracting the data from the "ID pearl" command on aardwolf. Here is an example.
+-----------------------------------------------------------------+
| Keywords : 41neck openstock touchstone pearl Asura |
| Name : (>Asura's Azurite Pearl<) |
| Id : 965751006 |
| Worn : Neck |
| Type : Armor Level : 41 |
| Worth : 5,060 Weight : 0 |
| Wearable : neck |
| Score : 185 |
| Material : pearl |
| Flags : unique, glow, hum, magic, held, burn-proof, |
| : solidified, illuminated, V3 |
| Notes : This item is from a clan hall. |
| Notes : Item has 2 resistance affects. |
+-----------------------------------------------------------------+