Help with pattern
-
I need help with regular expression for a javascript I'm working on. I have some html code into a variable that is named xmlDoc. The string includes a table and there are some things there that I want to pick out with regex.
6
Prentice, Bob
340584305858
Logged out[Edit](javascript:doEditAgent("56746")),
[Delete](javascript:doRemoveAgent("56746", "fn1")),
[Log in](javascript:doLoginLogout("4", "56746","fn1"))In this code I want to pick out: 1. The name, "Prentice, Bob" 2. The status, "Logged out" 3. The content from doLoginLogout(), "4", "56746","fn1" What pattern(s) should I use? There are five rows similar to this in the table that I need to do this on.
-
I need help with regular expression for a javascript I'm working on. I have some html code into a variable that is named xmlDoc. The string includes a table and there are some things there that I want to pick out with regex.
6
Prentice, Bob
340584305858
Logged out[Edit](javascript:doEditAgent("56746")),
[Delete](javascript:doRemoveAgent("56746", "fn1")),
[Log in](javascript:doLoginLogout("4", "56746","fn1"))In this code I want to pick out: 1. The name, "Prentice, Bob" 2. The status, "Logged out" 3. The content from doLoginLogout(), "4", "56746","fn1" What pattern(s) should I use? There are five rows similar to this in the table that I need to do this on.
Probably you need to take a look at this[^] But to pick the
name
,status
values, you may trydocument.getElementById
, Look at this Get Value of a cell of HTML Table[^]thatraja
My Dad had a Heart Attack on this day so don't...
Pompeyboy3 here | Nobody remains a virgin, Life screws everyone :sigh: