hey,
i have a regular expression which is written in C# and want to transform it to php:
i've searched several places but i couldn't make an equivalent for that expression in php, i'm looking to get the same results (several matches with groups inside each match).
Can someone plz help me out with this?
i have a regular expression which is written in C# and want to transform it to php:
| Code: |
| pattern = @"(?<1>.*?)\#(?<2>.*?)\#(?<3>.*?)\*";
Match NameMatch = Regex.Match(source,pattern); the source i wanna match is something like this: source = "First#Second#12,345*Ano-ther#Also_another#45,678,548*"; it should return: 1: First 2: Second 3: 12,345 and another match: 1: Ano-ther 2: Also_another 3: 45,678,548 |
i've searched several places but i couldn't make an equivalent for that expression in php, i'm looking to get the same results (several matches with groups inside each match).
Can someone plz help me out with this?
